Jake Vanderwerf
2026-01-19 0113d2e9c9ff34a6ffb10707cc76d34b67a0c367
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();