From 395859f058ee03768c5d957220b4720cdef0f702 Mon Sep 17 00:00:00 2001 From: Brendan Heywood Date: Wed, 5 Jun 2024 16:24:35 +1000 Subject: [PATCH] Emit debugging after persisting state --- classes/check/cachecheck.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/classes/check/cachecheck.php b/classes/check/cachecheck.php index 527240d..2bba4bf 100644 --- a/classes/check/cachecheck.php +++ b/classes/check/cachecheck.php @@ -174,13 +174,14 @@ public static function ping($type) { // Only update if the currently cached time is very old. if ($currentcache < ($time - DAYSECS)) { - debugging("\nHEARTBEAT doing {$type} ping\n", DEBUG_DEVELOPER); self::set_cache_ping_value($type, $time); // Read back the cached value immediately after setting it. // This should help detect any cache replication delays. $readbackvalue = self::get_cache_ping_value($type); + debugging("\nHEARTBEAT doing {$type} ping\n", DEBUG_DEVELOPER); + if (get_config('tool_heartbeat', 'shouldlogcacheping')) { lib::record_cache_pinged($currentcache, $currentdb, $time, $readbackvalue, $type); }