Remove buggy b/c logic in Parser::disableCache()/updateCacheExpiry()
authorAaron Schulz <aschulz@wikimedia.org>
Fri, 23 Oct 2015 19:35:43 +0000 (12:35 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Fri, 23 Oct 2015 19:35:43 +0000 (12:35 -0700)
commit0fc6c8b592ae2cd2c169de4e3305e424f0625c4b
tree9f06af9e192dba62599dda4b2c200b22bab098ab
parent5a7ee3b3d7b1d5ceee2c4d62a9e0c08022dc64bb
Remove buggy b/c logic in Parser::disableCache()/updateCacheExpiry()

* Setting mCacheTime to -1 is for old callers that
  only check getCacheTime() instead of getCacheExpiry().
  Most of them are already broken (WikiLog/SemanticForms) as
  they check for -1 which is in fact never returned
  due to the TS_MW conversion in Parser::getCacheTime.
* By using -1, the value of page_links_updated can end up
  as 1969, which is confusing and broken.

Change-Id: I8809a4258eacff05992a2c27ade7f6a0c1731c51
includes/parser/CacheTime.php
includes/parser/Parser.php