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:
rvelices
2014-06-02 19:55:38 +00:00
parent 0a381a55ce
commit 659528da06

View File

@@ -101,7 +101,7 @@ class PersistentFileCache extends PersistentCache
$lifetime = $this->default_lifetime;
}
if (rand() % 199 == 0)
if (rand() % 97 == 0)
{
$this->purge(false);
}