Make adaptiveTTL() less strict about $mtime type
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 7 Sep 2016 16:18:37 +0000 (09:18 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Wed, 7 Sep 2016 16:18:37 +0000 (09:18 -0700)
commit334820047390abb72b3c6b97f2acf285a732479c
tree8a3a8b8188311af6c48509f4a10f1e458a9242c3
parentdc178bf8f6b768919464f52905fc0d42d17fc3fe
Make adaptiveTTL() less strict about $mtime type

Callers using wfTimestamp( TS_UNIX, ... ) where getting $minTTL
due to the output being a string number.

Change-Id: I6b67a941940f40ef9a543f11d0dbccacafaaa53b
includes/libs/objectcache/WANObjectCache.php
tests/phpunit/includes/libs/objectcache/WANObjectCacheTest.php