From 179ccd274f15b910dbc188201ad51a418d81030c Mon Sep 17 00:00:00 2001 From: plegall Date: Wed, 7 Aug 2024 22:14:46 +0200 Subject: [PATCH] fixes #2203 purge persistent cache in invalidate_user_cache --- admin/include/functions.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/admin/include/functions.php b/admin/include/functions.php index 38a6f11e5..8a39d532f 100644 --- a/admin/include/functions.php +++ b/admin/include/functions.php @@ -2228,6 +2228,8 @@ function pwg_URL() */ function invalidate_user_cache($full = true) { + global $persistent_cache; + if ($full) { $query = ' @@ -2244,6 +2246,7 @@ UPDATE '.USER_CACHE_TABLE.' SET need_update = \'true\';'; pwg_query($query); } + $persistent_cache->purge(true); conf_delete_param('count_orphans'); trigger_notify('invalidate_user_cache', $full); }