From 9f86429a1252b45c95b7c62fbaa1b82de3723997 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Mon, 05 Jan 2026 18:16:07 +0000
Subject: [PATCH] =Complete TaxonomySelector.js and TaxonomyCreator.js refactor

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

diff --git a/inc/blocks/GlossaryBlock.php b/inc/blocks/GlossaryBlock.php
index c0442bb..5681ce9 100644
--- a/inc/blocks/GlossaryBlock.php
+++ b/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;
 		}

--
Gitblit v1.10.0