From: C. Scott Ananian Date: Mon, 4 Nov 2019 19:31:21 +0000 (-0500) Subject: Hard deprecate Parser::disableCache() X-Git-Tag: 1.34.0-rc.1~2 X-Git-Url: https://git.cyclocoop.org/?a=commitdiff_plain;h=62991fcb7a5027b1eceb5656829c1c65bf9f98cb;p=lhc%2Fweb%2Fwiklou.git Hard deprecate Parser::disableCache() Among deployed extensions, only used in the Quiz extension. Full list of uses (some false positives): https://codesearch.wmflabs.org/search/?q=disableCache&i=nope&files=&repos= Depends-On: I956a88120d07d76d1afa9d06e95d31055f9b07f1 Change-Id: I6419754de6cbc01af07b6c0eafb8396bd720a58d (cherry picked from commit 8dbc866e91d5a06cc1c2ca70c48c6752ddb48944) --- diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index 7f3bb23759..474d9c773f 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -5978,6 +5978,7 @@ class Parser { * @deprecated since 1.28; use getOutput()->updateCacheExpiry() */ public function disableCache() { + wfDeprecated( __METHOD__, '1.28' ); $this->logger->debug( "Parser output marked as uncacheable." ); if ( !$this->mOutput ) { throw new MWException( __METHOD__ .