From 3b83905603d44b1a08f8b2b36a605808ce686ad6 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Tue, 02 Jun 2026 00:46:48 +0000
Subject: [PATCH] =double checking schema outputs for legacytattooremoval

---
 inc/blocks/GlossaryBlock.php |   12 ++++--------
 1 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/inc/blocks/GlossaryBlock.php b/inc/blocks/GlossaryBlock.php
index c0442bb..c5c1a4f 100644
--- a/inc/blocks/GlossaryBlock.php
+++ b/inc/blocks/GlossaryBlock.php
@@ -1,9 +1,7 @@
 <?php
 namespace JVBase\blocks;
 
-use JVBase\managers\CacheManager;
-use JVBase\forms\TaxonomySelector;
-use JVBase\meta\MetaManager;
+use JVBase\managers\Cache;
 use WP_Block;
 use WP_Query;
 
@@ -13,7 +11,7 @@
 
 class GlossaryBlock
 {
-	protected CacheManager $cache;
+	protected Cache $cache;
 	protected string $config;
 	protected string $type;
 	protected string $path = JVB_DIR . '/build/glossary';
@@ -24,7 +22,7 @@
 
 	public function __construct()
 	{
-		$this->cache = CacheManager::for('glossary_terms', WEEK_IN_SECONDS);
+		$this->cache = Cache::for('glossary_terms', WEEK_IN_SECONDS)->connect('post', true);
 		add_action('init', [ $this, 'registerBlock' ]);
 	}
 
@@ -38,7 +36,6 @@
 	public function render(array $attributes, string $content, WP_Block $block)
 	{
 		$cache = $this->cache->get('all');
-		$cache = false;
 		if ($cache) {
 			return $cache;
 		}
@@ -90,12 +87,11 @@
 			'post_status' 		=> 'publish',
 			'orderby'			=> 'title',
 			'order'				=> 'asc',
-//			'fields'			=> 'ids'
 		]);
 		$glossary = [];
 		if ($posts->have_posts()) {
 			foreach($posts->posts as $post) {
-//				$meta = new MetaManager($post, 'post');
+//				$meta = Meta::forPost($post);
 //				$fields = $meta->getAll();
 //				$glossary[$fields['post_slug']] = $fields;
 				$glossary[$post->post_name] = [

--
Gitblit v1.10.0