jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/402612 )

Change subject: Replace deprecated Parser::disableCache() function
......................................................................


Replace deprecated Parser::disableCache() function

Deprecated in 1.28 in favor of CacheTime::updateCacheExpiry().

Change-Id: I3f6912f9767f5f3c5ccebfaaeeb905042376f9b3
---
M includes/PollNY.hooks.php
1 file changed, 2 insertions(+), 2 deletions(-)

Approvals:
  Jack Phoenix: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/PollNY.hooks.php b/includes/PollNY.hooks.php
index bb7e5b7..9b81f63 100644
--- a/includes/PollNY.hooks.php
+++ b/includes/PollNY.hooks.php
@@ -143,7 +143,7 @@
         * @return bool true
         */
        public static function onParserLimitReportPrepare( $parser, $output ) {
-               $parser->disableCache();
+               $parser->getOutput()->updateCacheExpiry( 0 );
                return true;
        }
 
@@ -188,7 +188,7 @@
                        // Disable caching; this is important so that we don't 
cause subtle
                        // bugs that are a bitch to fix.
                        $wgOut->enableClientCache( false );
-                       $parser->disableCache();
+                       $parser->getOutput()->updateCacheExpiry( 0 );
 
                        $poll_title = Title::newFromText( $poll_name, NS_POLL );
                        $poll_title = PollNYHooks::followPollID( $poll_title );

-- 
To view, visit https://gerrit.wikimedia.org/r/402612
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I3f6912f9767f5f3c5ccebfaaeeb905042376f9b3
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/PollNY
Gerrit-Branch: master
Gerrit-Owner: SamanthaNguyen <[email protected]>
Gerrit-Reviewer: Jack Phoenix <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to