From 0113d2e9c9ff34a6ffb10707cc76d34b67a0c367 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Mon, 19 Jan 2026 16:29:41 +0000
Subject: [PATCH] =Refactored window.getTemplate into a full templating class window.jvbTemplates. Refactored CRUD.js, UploadManager.js, FormController.js, PopulateForm.js with that in mind
---
inc/helpers/time.php | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/inc/helpers/time.php b/inc/helpers/time.php
index 9547b8a..6f94c49 100644
--- a/inc/helpers/time.php
+++ b/inc/helpers/time.php
@@ -1,5 +1,7 @@
<?php
+use JVBase\managers\CacheManager;
+
if (!defined('ABSPATH')) {
exit;
}
@@ -139,7 +141,7 @@
*/
function jvbRenderHours(int $ID, JVBase\Meta\MetaManager $meta):string
{
- $cache = new JVBase\managers\CacheManager('hours-'.$ID, WEEK_IN_SECONDS);
+ $cache = CacheManager::for('hours-'.$ID, WEEK_IN_SECONDS)->connectTo('taxonomy');
$key = 'hours_display';
$cached = $cache->get($key);
--
Gitblit v1.10.0