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/managers/TaxonomyRelationships.php |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/inc/managers/TaxonomyRelationships.php b/inc/managers/TaxonomyRelationships.php
index c9cf044..9ce35f5 100644
--- a/inc/managers/TaxonomyRelationships.php
+++ b/inc/managers/TaxonomyRelationships.php
@@ -19,7 +19,7 @@
     {
         global $wpdb;
         $this->table_name = $wpdb->prefix . BASE.'taxonomy_relationships';
-        $this->cache = new CacheManager('term_relationship', 86400);
+        $this->cache = CacheManager::for('term_relationship', WEEK_IN_SECONDS);
 
         // Ensure the table exists
 //        $this->create_table_if_not_exists();
@@ -59,7 +59,7 @@
      */
     public function updatePostRelationships(int $post_id):void
     {
-        $this->cache->invalidateGroup('term_relationships');
+        $this->cache->invalidate();
         $post_type = get_post_type($post_id);
 		if (in_array($post_type, [BASE.'directory', BASE.'dash'])) {
 			return;
@@ -338,7 +338,7 @@
      */
     public function rebuildAllRelationships():bool
     {
-        $this->cache->invalidateGroup('term_relationships');
+        $this->cache->invalidate();
         global $wpdb;
 
         // Clear existing relationships
@@ -370,7 +370,7 @@
             ]
         );
 
-        $this->cache->invalidateGroup('term_relationships');
+        $this->cache->invalidate();
 
         return true;
     }
@@ -448,6 +448,6 @@
             $term_id,
             $term_id
         ));
-        $this->cache->invalidateGroup('term_relationships');
+        $this->cache->invalidate();
     }
 }

--
Gitblit v1.10.0