From 18e7e415339ccc9adf8ade562f93abef606da16d Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Wed, 26 Aug 2026 22:24:18 +0000
Subject: [PATCH] =Cache::connects throughout codebase refactored
---
inc/rest/routes/Invitations.php | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/inc/rest/routes/Invitations.php b/inc/rest/routes/Invitations.php
index 9dbb49f..ded90c6 100644
--- a/inc/rest/routes/Invitations.php
+++ b/inc/rest/routes/Invitations.php
@@ -2,7 +2,9 @@
namespace JVBase\rest\routes;
use JVBase\Instance;
+use JVBase\managers\Cache;
use JVBase\managers\InvitationsManager;
+use JVBase\managers\Roles;
use JVBase\rest\Rest;
use JVBase\managers\CustomTable;
use JVBase\rest\Route;
@@ -25,20 +27,18 @@
use Instance;
protected array $inviteConfig;
protected CustomTable $table;
-
+ protected Cache $termCache;
public function __construct()
{
$this->cacheName = 'invitations';
parent::__construct();
+ $this->cache = Cache::for('invitations_posts','post');
+ $this->termCache = Cache::for('invitation_terms', 'term');
// Get invitation configuration
$this->inviteConfig = InvitationsManager::getInstance()->getInviteConfig();
$this->table = CustomTable::for('invitations');
- // Cache connections
- $this->cache
- ->connect('user')
- ->connect('taxonomy');
}
public function registerRoutes(): void
@@ -80,7 +80,7 @@
}
$args = [
- 'user' => $userID,
+ 'id' => $userID,
'to_term' => $termID,
'taxonomy' => $taxonomy ? jvbNoBase($taxonomy) : null,
'status' => $request->get_param('status'),
--
Gitblit v1.10.0