From f474fa4cef3f10acfa38ce825122f44343334133 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Mon, 11 Mar 2019 23:39:29 -0700 Subject: [PATCH] Avoid using outdated $casToken field for BagOStuff calls Change-Id: Ic9bcb388e4f50e2ae16ae57aa16113e79b43350b --- includes/parser/ParserCache.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/includes/parser/ParserCache.php b/includes/parser/ParserCache.php index ce7ae1328a..8e8cd98c38 100644 --- a/includes/parser/ParserCache.php +++ b/includes/parser/ParserCache.php @@ -189,9 +189,8 @@ class ParserCache { } // Determine the options which affect this article - $casToken = null; $optionsKey = $this->mMemc->get( - $this->getOptionsKey( $article ), $casToken, BagOStuff::READ_VERIFIED ); + $this->getOptionsKey( $article ), BagOStuff::READ_VERIFIED ); if ( $optionsKey instanceof CacheTime ) { if ( $useOutdated < self::USE_EXPIRED && $optionsKey->expired( $article->getTouched() ) ) { $this->incrementStats( $article, "miss.expired" ); @@ -257,7 +256,7 @@ class ParserCache { $casToken = null; /** @var ParserOutput $value */ - $value = $this->mMemc->get( $parserOutputKey, $casToken, BagOStuff::READ_VERIFIED ); + $value = $this->mMemc->get( $parserOutputKey, BagOStuff::READ_VERIFIED ); if ( !$value ) { wfDebug( "ParserOutput cache miss.\n" ); $this->incrementStats( $article, "miss.absent" ); -- 2.20.1