From 3d25ad7de4fdbb3eba2cde2a62422e6be5d79a0a Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Tue, 25 Aug 2026 22:57:22 +0000
Subject: [PATCH] =It's been a minute. I went through the Routes and associated Managers and ensured they played together well. Reworked the Cache.php, and I think I caught all the references. Moving away from JVBase() root class, to individuall classes that are Instanced. Double checked for the ABSPATH check in every file, and added index.php to every directory that didn't already have it. Also still working on the MenuBlock to work with WooCommerce for now for Northeh
---
inc/rest/routes/SettingsRoutes.php | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/inc/rest/routes/SettingsRoutes.php b/inc/rest/routes/SettingsRoutes.php
index 66d1068..6d2adf4 100644
--- a/inc/rest/routes/SettingsRoutes.php
+++ b/inc/rest/routes/SettingsRoutes.php
@@ -1,6 +1,7 @@
<?php
namespace JVBase\rest\routes;
+use JVBase\Instance;
use JVBase\JVB;
use JVBase\rest\PermissionHandler;
use JVBase\rest\Rest;
@@ -18,11 +19,13 @@
}
class SettingsRoutes extends Rest
{
+ use Instance;
protected int $count;
public function __construct()
{
$this->cacheName = 'user_settings';
parent::__construct();
+ $this->cache = Cache::for($this->cacheName, null, $this->cacheTtl);
// $this->action = 'dash-';
// $this->operation_type = 'user_settings';
$this->count = 1;
@@ -84,7 +87,7 @@
$data['notification_preferences'] = $add;
}
- JVB()->queue()->queueOperation(
+ Queue::getInstance()->queueOperation(
'user_settings',
$user_id,
$data,
--
Gitblit v1.10.0