mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AJAXPoll
synced 2024-11-28 00:40:46 +00:00
Replace deprecated Parser::disableCache() function
Deprecated in 1.28 in favor of CacheTime::updateCacheExpiry(). Change-Id: Iaffa63bb8e90e4d5853e47a59133d5b720ce89b1
This commit is contained in:
parent
4d31344beb
commit
ff8313e706
|
@ -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' );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue