Jake Vanderwerf
2025-12-21 3aada9949d51024a92a8b5c6cb70d12f9c3cac16
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();