Replace deprecated Parser::disableCache() function

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

Change-Id: Iaffa63bb8e90e4d5853e47a59133d5b720ce89b1
This commit is contained in:
SamanthaNguyen 2018-01-06 12:40:14 -06:00
parent 4d31344beb
commit ff8313e706

View file

@ -31,7 +31,7 @@ class AJAXPoll {
static function AJAXPollRender( $input, $args = [], Parser $parser, $frame ) { static function AJAXPollRender( $input, $args = [], Parser $parser, $frame ) {
global $wgUser, $wgRequest, $wgUseAjax; global $wgUser, $wgRequest, $wgUseAjax;
$parser->disableCache(); $parser->getOutput()->updateCacheExpiry( 0 );
$parser->addTrackingCategory( 'ajaxpoll-tracking-category' ); $parser->addTrackingCategory( 'ajaxpoll-tracking-category' );
$parser->getOutput()->addModules( 'ext.ajaxpoll' ); $parser->getOutput()->addModules( 'ext.ajaxpoll' );