Make $wgContribScoreCacheTTL affect caching of embedded Special:ContributionScores page

Change-Id: I526362c422f611e3f8882be5575618f530b868b2
This commit is contained in:
Vedmaka 2022-09-18 23:45:13 +03:00 committed by D3r1ck01
parent e307850555
commit d4dae78b27

View file

@ -407,6 +407,11 @@ class ContributionScores extends IncludableSpecialPage {
}
}
public function maxIncludeCacheTime() {
global $wgContribScoreDisableCache, $wgContribScoreCacheTTL;
return $wgContribScoreDisableCache ? 0 : $wgContribScoreCacheTTL;
}
/**
* @inheritDoc
*/