From d38d825e3484d822ea3c1f0fb1df37ecf386b18a Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Sun, 04 Jan 2026 19:54:16 +0000
Subject: [PATCH] =TaxonomyCreator.js debugging
---
inc/managers/UmamiMetrics.php | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/inc/managers/UmamiMetrics.php b/inc/managers/UmamiMetrics.php
index de259ae..5330133 100644
--- a/inc/managers/UmamiMetrics.php
+++ b/inc/managers/UmamiMetrics.php
@@ -37,7 +37,7 @@
$this->website_id = get_option('jvb_umami_website_id', UMAMI_WEBSITE_ID);
// Initialize cache manager
- $this->cache = new CacheManager('umami_metrics', DAY_IN_SECONDS);
+ $this->cache = CacheManager::for('umami_metrics', DAY_IN_SECONDS);
// Register hooks
add_action('jvb_daily_umami_collection', [$this, 'collectDailyData']);
@@ -330,7 +330,7 @@
);
// Clear cache for the processed date
- $this->cache->invalidate('metrics_' . $date);
+ $this->cache->invalidate();
} catch (Exception $e) {
$results['errors'][] = 'Exception during data collection: ' . $e->getMessage();
--
Gitblit v1.10.0