From b38f03c0e7218762d90fa5092696b127f24f36db Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Sun, 25 Jan 2026 07:07:26 +0000
Subject: [PATCH] =Some logical flaws in Queue.php, Queue.js, ContentExecutor.php, UploadExecutor.php - particularly with timeline ordering, frontend queue updates, etc
---
inc/managers/NewsRelationships.php | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/inc/managers/NewsRelationships.php b/inc/managers/NewsRelationships.php
index 526ea30..12098e9 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']);
@@ -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