ParserOutput::getCacheTime should stay the same after the first call.
authordaniel <dkinzler@wikimedia.org>
Thu, 4 Oct 2018 10:32:06 +0000 (12:32 +0200)
committerdaniel <dkinzler@wikimedia.org>
Thu, 4 Oct 2018 11:08:56 +0000 (13:08 +0200)
commit414215ccac0f3288ccb1a40a5a8e29b9a70f0e89
tree4e1a814e1d9a8012592ef3bf7491921278fd4593
parent1472f02b364c5bd2fb5d2b25ca3e99121ad12deb
ParserOutput::getCacheTime should stay the same after the first call.

Previously, getCacheTime would default to the current time, potentially
causing the return value to change over subsequent calls. With this change,
the value is determined on the first call, and then remembered for subsequent
calls.

Bug: T205464
Change-Id: If240161c71d523ad5b0d33b9378950e0bebceb6e
includes/parser/CacheTime.php
tests/phpunit/includes/Storage/DerivedPageDataUpdaterTest.php
tests/phpunit/includes/parser/ParserOutputTest.php