aboutsummaryrefslogtreecommitdiffstats
path: root/include/cache.class.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2014-06-02 19:55:38 +0000
committerrvelices <rv-github@modusoptimus.com>2014-06-02 19:55:38 +0000
commit659528da066fecce3b37875a04a324f500f483d6 (patch)
tree37ac9375f5e3f70b416ee988b4d491ca44338572 /include/cache.class.php
parent0a381a55cedd62b7f0388fb301edd7ddd4c6c9c1 (diff)
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
Diffstat (limited to '')
-rw-r--r--include/cache.class.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/cache.class.php b/include/cache.class.php
index b1f7dde89..5b97cb1f1 100644
--- a/include/cache.class.php
+++ b/include/cache.class.php
@@ -101,7 +101,7 @@ class PersistentFileCache extends PersistentCache
$lifetime = $this->default_lifetime;
}
- if (rand() % 199 == 0)
+ if (rand() % 97 == 0)
{
$this->purge(false);
}