From 659528da066fecce3b37875a04a324f500f483d6 Mon Sep 17 00:00:00 2001 From: rvelices Date: Mon, 2 Jun 2014 19:55:38 +0000 Subject: [PATCH] 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 --- include/cache.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }