From e6672fe38ce5d99f3b3f026154f777aded7361de Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Thu, 29 Jan 2026 17:36:53 +0000
Subject: [PATCH] =Starting refactor of Meta and Routes to fluent-style
---
inc/managers/CRUDManager.php | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/inc/managers/CRUDManager.php b/inc/managers/CRUDManager.php
index b868510..6635406 100644
--- a/inc/managers/CRUDManager.php
+++ b/inc/managers/CRUDManager.php
@@ -14,7 +14,7 @@
*/
class CRUD {
protected CRUDSkeleton $skeleton;
- protected CacheManager $cache;
+ protected Cache $cache;
protected array $config;
protected string $content;
protected array $taxonomies = [];
@@ -39,9 +39,11 @@
$this->user_id = get_current_user_id();
$this->config = $this->constant[$content];
$this->content = $content;
- $this->cache = CacheManager::for($content);
+ $this->cache = Cache::for('crud')->connect('post')->connect('taxonomy');
- $this->cache->clear();
+ if (JVB_TESTING) {
+ $this->cache->flush();
+ }
// Create and configure skeleton
$this->skeleton = new CRUDSkeleton();
--
Gitblit v1.10.0