From d4dae78b27ba5a4bdb2081abc6d6136125709fcb Mon Sep 17 00:00:00 2001 From: Vedmaka Date: Sun, 18 Sep 2022 23:45:13 +0300 Subject: [PATCH] Make `$wgContribScoreCacheTTL` affect caching of embedded `Special:ContributionScores` page Change-Id: I526362c422f611e3f8882be5575618f530b868b2 --- src/ContributionScores.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ContributionScores.php b/src/ContributionScores.php index e5ccc8d..2a9d7a5 100644 --- a/src/ContributionScores.php +++ b/src/ContributionScores.php @@ -407,6 +407,11 @@ class ContributionScores extends IncludableSpecialPage { } } + public function maxIncludeCacheTime() { + global $wgContribScoreDisableCache, $wgContribScoreCacheTTL; + return $wgContribScoreDisableCache ? 0 : $wgContribScoreCacheTTL; + } + /** * @inheritDoc */