inc/blocks/GlossaryBlock.php
@@ -24,7 +24,7 @@ public function __construct() { $this->cache = CacheManager::for('glossary_terms', WEEK_IN_SECONDS); $this->cache = CacheManager::for('glossary_terms', WEEK_IN_SECONDS)->connectTo('post', 'terms'); add_action('init', [ $this, 'registerBlock' ]); } @@ -38,7 +38,6 @@ public function render(array $attributes, string $content, WP_Block $block) { $cache = $this->cache->get('all'); $cache = false; if ($cache) { return $cache; }