fixes #2203 purge persistent cache in invalidate_user_cache

This commit is contained in:
plegall
2024-08-07 22:14:46 +02:00
parent c0d1245f19
commit 179ccd274f
+3
View File
@@ -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);
}