X-Git-Url: https://git.cyclocoop.org/%7B%7B%20url_for%28?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialRecentchanges.php;h=36ccd4ae4b238e698f47c372edbe3a144423217c;hb=7730dee63b1d2b7fadcecb8b36a44b2b03031060;hp=b6398cb567959c56de0abf2006104d897ac9a398;hpb=879ebfb18a0b34d28dad83b6067039149c8254cd;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialRecentchanges.php b/includes/specials/SpecialRecentchanges.php index b6398cb567..36ccd4ae4b 100644 --- a/includes/specials/SpecialRecentchanges.php +++ b/includes/specials/SpecialRecentchanges.php @@ -794,4 +794,19 @@ class SpecialRecentChanges extends ChangesListSpecialPage { public function isIncludable() { return true; } + + /** + * How long to cache page when it is being included. + * + * @return int|bool Time in seconds, 0 to disable caching altogether + */ + public function maxIncludeCacheTime() { + global $wgMiserMode; + if ( !$wgMiserMode ) { + return 0; + } else { + return 60*5; + } + } + }