From 879ebfb18a0b34d28dad83b6067039149c8254cd Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Tue, 14 Jun 2016 17:48:04 -0700 Subject: [PATCH] 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 --- includes/parser/Parser.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index 63a297b2d7..b563613533 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -3151,7 +3151,8 @@ class Parser { $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 -- 2.20.1