From 42fa8304ddb811b0f725f245130f70c0f5e86a6c Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Tue, 04 Nov 2025 06:12:02 +0000
Subject: [PATCH] =Refactored LoginManager to be more extensible and configurable, as well as an AjaxRateLimiter

---
 inc/registry/TaxonomyRegistrar.php |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/inc/registry/TaxonomyRegistrar.php b/inc/registry/TaxonomyRegistrar.php
index bd0c049..e31fc5a 100644
--- a/inc/registry/TaxonomyRegistrar.php
+++ b/inc/registry/TaxonomyRegistrar.php
@@ -336,19 +336,15 @@
 				if ($tax !== $taxonomy) return;
 
 				$term = get_term($term_id, $tax);
-				jvbUpdateCacheTimestamp('term', $term);
 
-				// Clear taxonomy cache
-				CacheManager::invalidateGroup($taxonomy);
-				CacheManager::invalidateGroup('terms');
-				CacheManager::invalidateGroup('termCheck');
+				CacheManager::for(jvbNoBase($taxonomy))->invalidate();
 
 				// Clear cache for associated content types
 				$checker = Checker::getInstance();
 				$content_types = $checker->getContentForTaxonomy($taxonomy);
 
 				foreach ($content_types as $content_type) {
-					CacheManager::invalidateGroup($content_type);
+					CacheManager::for($content_type)->invalidate();
 				}
 
 				do_action("jvb_taxonomy_cache_invalidated_{$taxonomy}", $term, $action);

--
Gitblit v1.10.0