X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Flibs%2Fobjectcache%2FWANObjectCache.php;h=1f757a41e9ff4703427bf8c3bf331ae820282626;hb=e0b2787dae749ba3d4cb18bc9b3fe789db69046f;hp=c1c9cc1a8a0eaab2c9064496eee1c65312f8b56a;hpb=c01536f8c082ef4a4384479db25bbba6ddb1ea4c;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/libs/objectcache/WANObjectCache.php b/includes/libs/objectcache/WANObjectCache.php index c1c9cc1a8a..1f757a41e9 100644 --- a/includes/libs/objectcache/WANObjectCache.php +++ b/includes/libs/objectcache/WANObjectCache.php @@ -1424,7 +1424,7 @@ class WANObjectCache implements IExpiringStore, LoggerAwareInterface { * @return int Adaptive TTL * @since 1.28 */ - public function adaptiveTTL( $mtime, $maxTTL, $minTTL = 30, $factor = .2 ) { + public function adaptiveTTL( $mtime, $maxTTL, $minTTL = 30, $factor = 0.2 ) { if ( is_float( $mtime ) || ctype_digit( $mtime ) ) { $mtime = (int)$mtime; // handle fractional seconds and string integers }