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

diff --git a/inc/rest/routes/NotificationsRoutes.php b/inc/rest/routes/NotificationsRoutes.php
index 90af2be..fd04460 100644
--- a/inc/rest/routes/NotificationsRoutes.php
+++ b/inc/rest/routes/NotificationsRoutes.php
@@ -109,10 +109,7 @@
 		$this->cacheName = 'notifications';
 		$this->cacheTtl = HOUR_IN_SECONDS;
 		parent::__construct();
-
-		// Connect notifications cache to user cache
-		// When user data changes, notification cache should invalidate
-		$this->cache->connect('user');
+		$this->cache = Cache::for($this->cacheName, 'user', $this->cacheTtl);
 
 		$this->notifications = CustomTable::for('notifications');
 		$this->metrics = CustomTable::for('notification_metrics');

--
Gitblit v1.10.0