From 42fa8304ddb811b0f725f245130f70c0f5e86a6c Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Tue, 04 Nov 2025 06:12:02 +0000
Subject: [PATCH] =Refactored LoginManager to be more extensible and configurable, as well as an AjaxRateLimiter
---
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