Make transcluded special pages not disable cache in miser mode.
authorBrian Wolff <bawolff+wn@gmail.com>
Fri, 20 Jun 2014 16:18:29 +0000 (13:18 -0300)
committerAaron Schulz <aschulz@wikimedia.org>
Wed, 15 Jun 2016 03:46:32 +0000 (20:46 -0700)
commit7730dee63b1d2b7fadcecb8b36a44b2b03031060
tree675704960b3f8857cb59d2b08055789cf9529fd6
parent879ebfb18a0b34d28dad83b6067039149c8254cd
Make transcluded special pages not disable cache in miser mode.

Previously {{Special:Foo}} would cause parser cache to be disabled,
now have a method in SpecialPage to control this behaviour and set
arbitrary caching times.

Note: This does not affect caching of direct views to the special page

The new default is now disabling cache if not in miser mode,
otherwise setting to 1 hour, except for Special:Recentchanges
and Special:Newpages which set to 5 minutes. These values are
possibly really low, but for now I think best to be close to the
old behaviour. We had 0 caching for these things for years, and
afaik it hasn't caused any big issues. Part of me wonders if
Special:Recentchanges should stay at 0, but that sounds crazy.

This change also causes transcluded special pages to not be
"per-user" if they are being cached (Specificly $wgUser et al
become 127.0.0.1).

Bug: 60561
Change-Id: Id9ce987adeaa69d886eb1c5cd74c01072583e84d
includes/parser/Parser.php
includes/specialpage/SpecialPage.php
includes/specials/SpecialNewpages.php
includes/specials/SpecialRecentchanges.php