wiki.techinc.nl/tests/phpunit/includes/parser
daniel e3fb964439 Only cache expensive renderings
Pages that are fast to render can be omitted from the parser cache
to preserve disk space and cache write operations.

The threshold is configurable per namespace, so the tradeoff can
be evaluated based on different access patterns. For example, pages
that are accessed rarely, like file description pages on commons,
may have a high threshold configured, while pages that are read
frequently, like wikipedia articles, may be configured to be always
cached, using a 0 threshold.

Filtering is based on a time profile recorded in the ParserOutput.
A generic mechanism for capturing the timing profile is implemented
in the ContentHandler base class. Subclasses may implement a more
rigorous capture mechanism.

Bug: T346765
Change-Id: I38a6f3ef064f98f3ad6a7c60856b0248a94fe9ac
2023-11-30 20:56:12 +00:00
..
CacheTimeTest.php Reorg: Move MWTimestamp to MediaWiki\Utils 2023-08-19 05:53:40 +02:00
CoreParserFunctionsTest.php Namespace User under \MediaWiki\User 2023-09-19 19:18:16 +00:00
ExtraParserTest.php Namespace User under \MediaWiki\User 2023-09-19 19:18:16 +00:00
LinkHolderArrayIntegrationTest.php Merge "parser: Make all LinkHolderArray properties private" 2023-04-08 22:28:31 +00:00
MagicVariableTest.php Namespace User under \MediaWiki\User 2023-09-19 19:18:16 +00:00
MagicWordFactoryTest.php Deprecate MagicWordFactory::getSubstIDs 2023-11-13 11:10:24 +01:00
PageBundleJsonTraitTest.php Introduce PageBundleJsonTrait for serialization 2022-05-23 17:54:48 +01:00
ParserCacheSerializationTestCases.php Only cache expensive renderings 2023-11-30 20:56:12 +00:00
ParserCacheTest.php Only cache expensive renderings 2023-11-30 20:56:12 +00:00
ParserMethodsTest.php parser: Move lang/dir and mw-content-ltr to ParserOutput::getText 2023-11-03 19:24:47 -04:00
ParserOptionsTest.php Namespace User under \MediaWiki\User 2023-09-19 19:18:16 +00:00
ParserOutputTest.php Only cache expensive renderings 2023-11-30 20:56:12 +00:00
ParserPreloadTest.php Namespace User under \MediaWiki\User 2023-09-19 19:18:16 +00:00
ParserTest.php Deprecate MagicWordFactory::getSubstIDs 2023-11-13 11:10:24 +01:00
PreprocessorTest.php Namespace User under \MediaWiki\User 2023-09-19 19:18:16 +00:00
RevisionOutputCacheTest.php Namespace User under \MediaWiki\User 2023-09-19 19:18:16 +00:00
SanitizerTest.php Drop Sanitizer::escapeIdReferenceList(), deprecated since 1.36 2023-09-27 22:40:23 +00:00
StripStateTest.php tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
TagHooksTest.php Namespace User under \MediaWiki\User 2023-09-19 19:18:16 +00:00
validateParserCacheSerializationTestData.php Update 'validateParserCacheSerializationTestData' maintenance script 2023-09-07 20:37:36 +00:00