mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-26 03:09:58 +03:00
issue #2336 might be unset (on upgrade.php for example)
This commit is contained in:
parent
d5431e9476
commit
073403dcab
1 changed files with 4 additions and 2 deletions
|
@ -2230,7 +2230,10 @@ function invalidate_user_cache($full = true)
|
||||||
{
|
{
|
||||||
global $persistent_cache, $logger;
|
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)
|
if ($full)
|
||||||
{
|
{
|
||||||
|
@ -2251,7 +2254,6 @@ UPDATE '.USER_CACHE_TABLE.'
|
||||||
$persistent_cache->purge(true);
|
$persistent_cache->purge(true);
|
||||||
conf_delete_param('count_orphans');
|
conf_delete_param('count_orphans');
|
||||||
trigger_notify('invalidate_user_cache', $full);
|
trigger_notify('invalidate_user_cache', $full);
|
||||||
$logger->info(__FUNCTION__.' ends');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue