From acbd88d0681d318ef36d27279c1dd6c391597e39 Mon Sep 17 00:00:00 2001 From: Szymon Porwolik Date: Thu, 27 Nov 2025 19:42:07 +0100 Subject: [PATCH] Fix - do not run, when worked cache is not enabled --- application/libraries/DxclusterCache.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/application/libraries/DxclusterCache.php b/application/libraries/DxclusterCache.php index cf5b59101..083e7723a 100644 --- a/application/libraries/DxclusterCache.php +++ b/application/libraries/DxclusterCache.php @@ -63,6 +63,9 @@ class DxclusterCache { * @param string $callsign - The worked callsign */ public function invalidateForCallsign($callsign) { + // Skip if worked cache is disabled + if ($this->CI->config->item('enable_dxcluster_file_cache_worked') !== true) return; + if (empty($callsign)) return; // Get current user's logbook key @@ -88,6 +91,9 @@ class DxclusterCache { * Invalidate all worked cache for current user (bulk operations) */ public function invalidateAllWorkedForCurrentUser() { + // Skip if worked cache is disabled + if ($this->CI->config->item('enable_dxcluster_file_cache_worked') !== true) return; + $logbook_key = $this->getCurrentUserLogbookKey(); if (empty($logbook_key)) return;