Aaron Schulz has uploaded a new change for review. https://gerrit.wikimedia.org/r/294415
Change subject: Use a low TTL for parser output when special pages are included ...................................................................... Use a low TTL for parser output when special pages are included Previously, no TTL at all was used, which is quite harsh on performance and had downstream effects like disabling edit stashing for affected pages. Bug: T136678 Change-Id: I2462057aa189cfb05fe65d0b3c081a9fd10066a2 --- M includes/parser/Parser.php 1 file changed, 2 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/15/294415/1 diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index 63a297b..b563613 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -3151,7 +3151,8 @@ $this->mOutput->addOutputPageMetadata( $context->getOutput() ); $found = true; $isHTML = true; - $this->disableCache(); + // Severely reduce cache time to keep content dynamic + $this->mOutput->updateCacheExpiry( 30 ); } } elseif ( MWNamespace::isNonincludable( $title->getNamespace() ) ) { $found = false; # access denied -- To view, visit https://gerrit.wikimedia.org/r/294415 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I2462057aa189cfb05fe65d0b3c081a9fd10066a2 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: wmf/1.28.0-wmf.6 Gerrit-Owner: Aaron Schulz <asch...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits