Bump WANObjectCache::LOW_TTL to 30
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 7 Oct 2015 06:50:24 +0000 (23:50 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Wed, 7 Oct 2015 06:50:28 +0000 (23:50 -0700)
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

includes/libs/objectcache/WANObjectCache.php

index 7e70e4b..4beb627 100644 (file)
@@ -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;