From 9e3a4aecc859ab6fe0179ac7c79a4164e29d2569 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Sun, 04 Jan 2026 19:19:10 +0000
Subject: [PATCH] =TaxonomyCreator.js minor fixes; found that when creating multiple terms across separate fields, it got 'stuck' and wouldn't finish some of them

---
 inc/blocks/MenuBlock.php |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/inc/blocks/MenuBlock.php b/inc/blocks/MenuBlock.php
index b79d9ff..e52f2a2 100644
--- a/inc/blocks/MenuBlock.php
+++ b/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;
         }

--
Gitblit v1.10.0