mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
increase frequency of persistent cache purge (every ~100 set ops instead of ~200 set ops)
git-svn-id: http://piwigo.org/svn/trunk@28599 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -101,7 +101,7 @@ class PersistentFileCache extends PersistentCache
|
||||
$lifetime = $this->default_lifetime;
|
||||
}
|
||||
|
||||
if (rand() % 199 == 0)
|
||||
if (rand() % 97 == 0)
|
||||
{
|
||||
$this->purge(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user