inc/blocks/MenuBlock.php
@@ -27,7 +27,7 @@ public function __construct() { $this->cache = new CacheManager('menu', WEEK_IN_SECONDS); $this->cache = CacheManager::for('menu', WEEK_IN_SECONDS)->connectTo('post', 'menu_item'); add_action('init', [ $this, 'registerBlock' ]); } @@ -58,7 +58,6 @@ } $key = $this->cache->generateKey($this->params); $cache = $this->cache->get($key); $cache = false; if ($cache) { return $cache; }