From ed57c386db34d8693ca75311972d0929ebe5f488 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Mon, 01 Jun 2026 22:23:19 +0000
Subject: [PATCH] =Added some more Schema classes, allowed for override of  array in outputSchema for complex schema, as for timeline post types

---
 inc/managers/NewsRelationships.php |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/inc/managers/NewsRelationships.php b/inc/managers/NewsRelationships.php
index 526ea30..5156256 100644
--- a/inc/managers/NewsRelationships.php
+++ b/inc/managers/NewsRelationships.php
@@ -16,13 +16,13 @@
 class NewsRelationships
 {
     private string $table_name;
-    private CacheManager $cache;
+    private Cache $cache;
 
     public function __construct()
     {
         global $wpdb;
         $this->table_name = $wpdb->prefix . BASE . 'news_relationships';
-        $this->cache = CacheManager::for('news_relationships', WEEK_IN_SECONDS);
+        $this->cache = Cache::for('news_relationships', WEEK_IN_SECONDS)->connect('post', true)->connect('taxonomy', true)->connect('user',true);
 
         // Register hooks
         add_action('init', [$this, 'registerHooks']);
@@ -215,7 +215,7 @@
      */
     public function handleLinkChange(int $meta_id, int $object_id, string $meta_key, string|null $meta_value = null):void
     {
-        // Only proceed for BASE.'link' meta key
+        // Only proceed for BASE.'profile_link' meta key
         if ($meta_key !== BASE . 'link') {
             return;
         }
@@ -512,7 +512,7 @@
         }
 
         // Update cache
-        $this->cache->delete($shop_id);
+        $this->cache->forget($shop_id);
 
         // Update shop total count
         $this->updateShopTotal($shop_id);
@@ -534,7 +534,7 @@
         );
 
         // Update cache
-        $this->cache->delete($shop_id);
+        $this->cache->forget($shop_id);
     }
 
     /**

--
Gitblit v1.10.0