From 073403dcabec9b1216f210720636b9ea7b5428b0 Mon Sep 17 00:00:00 2001 From: plegall Date: Wed, 12 Mar 2025 10:53:36 +0100 Subject: [PATCH] issue #2336 might be unset (on upgrade.php for example) --- admin/include/functions.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/admin/include/functions.php b/admin/include/functions.php index 0c7813e97..331e21a8b 100644 --- a/admin/include/functions.php +++ b/admin/include/functions.php @@ -2230,7 +2230,10 @@ function invalidate_user_cache($full = true) { global $persistent_cache, $logger; - $logger->info(__FUNCTION__.' starts'); + if (isset($logger) and gettype($logger) == 'object' and get_class($logger) == 'Logger') + { + $logger->info(__FUNCTION__.' called'); + } if ($full) { @@ -2251,7 +2254,6 @@ UPDATE '.USER_CACHE_TABLE.' $persistent_cache->purge(true); conf_delete_param('count_orphans'); trigger_notify('invalidate_user_cache', $full); - $logger->info(__FUNCTION__.' ends'); } /**