From: Aaron Schulz Date: Wed, 7 Oct 2015 06:50:24 +0000 (-0700) Subject: Bump WANObjectCache::LOW_TTL to 30 X-Git-Tag: 1.31.0-rc.0~9509^2 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=667e9ef44bb97d82eb7f522ebe773f90c05b9284;p=lhc%2Fweb%2Fwiklou.git Bump WANObjectCache::LOW_TTL to 30 This better handles values that take a long time to generate. For example if it took 10 sec, then the old value would not regenerate in time. 30 is a good, high, value that is the default PHP timeout. Change-Id: I2e4372bf4c6d28d09347012926d8c0a9deda4183 --- diff --git a/includes/libs/objectcache/WANObjectCache.php b/includes/libs/objectcache/WANObjectCache.php index 7e70e4bb5e..4beb627d6a 100644 --- a/includes/libs/objectcache/WANObjectCache.php +++ b/includes/libs/objectcache/WANObjectCache.php @@ -82,7 +82,7 @@ class WANObjectCache { /** Seconds to keep lock keys around */ const LOCK_TTL = 5; /** Default remaining TTL at which to consider pre-emptive regeneration */ - const LOW_TTL = 10; + const LOW_TTL = 30; /** Default time-since-expiry on a miss that makes a key "hot" */ const LOCK_TSE = 1;