mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
fixes #2203 purge persistent cache in invalidate_user_cache
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user