wiki.techinc.nl/tests/phpunit/includes/parser
Aaron Schulz 366a0afd63 parser: improve cache TTL accuracy for CURRENT*/LOCAL* magic words
Consolidate cache TTL handling within CoreMagicVariables.

Make the TTL account for how many seconds away the value is from changing.
For example, CURRENTHOUR should change soon after the next hour is reached.
There is a minimum adjustment TTL to avoid parser-after-save delays.

This allows for longer caching in most cases, as well as more up-to-date
rendering when the hour/day/week/year is about to change. Previously, there
were blind TTLs, which are either way too pessimistic or way too generous.

This commit does not change the CURRENTTIME, CURRENTTIMESTAMP, LOCALTIME,
and LOCALTIMESTAMP words, since there is no reasonable way to cache output
while keeping them up-to-date.

Bug: T320668
Change-Id: I9acb42b0d9ff67798a1624cbf9c7cac99c8fbe2f
2023-03-28 22:35:17 +00:00
..
CacheTimeTest.php Migrate from setMwGlobals() to overrideConfigValue(s) 2022-08-02 10:14:10 +01:00
CoreParserFunctionsTest.php tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
LinkHolderArrayIntegrationTest.php tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
MagicVariableTest.php parser: improve cache TTL accuracy for CURRENT*/LOCAL* magic words 2023-03-28 22:35:17 +00:00
MagicWordFactoryTest.php parser: improve cache TTL accuracy for CURRENT*/LOCAL* magic words 2023-03-28 22:35:17 +00:00
PageBundleJsonTraitTest.php Introduce PageBundleJsonTrait for serialization 2022-05-23 17:54:48 +01:00
ParserCacheSerializationTestCases.php Deprecate ParserOutput::{get,set}TOCHTML() 2023-03-10 20:34:33 -05:00
ParserCacheTest.php tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
ParserMethodsTest.php Reorg: Namespace the Title class 2023-03-02 08:46:53 -05:00
ParserOptionsTest.php Allow setting a ParserOption to generate Parsoid HTML 2023-03-26 21:46:05 -04:00
ParserOutputTest.php tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
ParserPreloadTest.php Reorg: Namespace the Title class 2023-03-02 08:46:53 -05:00
ParserTest.php Reorg: Namespace the Title class 2023-03-02 08:46:53 -05:00
PreprocessorTest.php Auto-discover core parser test files 2022-10-13 10:41:15 -04:00
RevisionOutputCacheTest.php tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
SanitizerTest.php tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
StripStateTest.php tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
TagHooksTest.php Reorg: Namespace the Title class 2023-03-02 08:46:53 -05:00
validateParserCacheSerializationTestData.php