aboutsummaryrefslogtreecommitdiffstats
path: root/includes/ResourceLoader
diff options
context:
space:
mode:
authordaniel <dkinzler@wikimedia.org>2025-04-01 13:48:59 +0200
committerKrinkle <krinkle@fastmail.com>2025-04-01 21:59:29 +0000
commit1f863762c85a61e7a55778b84f0fa4e071ccfe11 (patch)
tree9afac8aeaf07bae2498b0320e4a50ed07625523a /includes/ResourceLoader
parent31fd6bc7d1a52c2ce4bcaa60562f7c77d314f0aa (diff)
downloadmediawikicore-1f863762c85a61e7a55778b84f0fa4e071ccfe11.tar.gz
mediawikicore-1f863762c85a61e7a55778b84f0fa4e071ccfe11.zip
ParserCache: Skip saving of "redirect=no" ParserOutput of redirect pages
Why: - ParserCache refuses to return cache entries for redirect pages. So we shouldn't write these entries into the parser cache in the first place. - If we write but refuse to read, this means there will be a cache write every time a redirect page is retrieved via ParserOutputAccess. What: - Make ParserCache:save() skip entries for redirect pages. This is only reachable via "redirect=no" since by default MediaWiki pageviews render the destination page instead. Note: - It seems we should be able to store redirect pages like any other page in the ParserCache. Why we didn't, and whether we should, is not yet clear. While this is being investigated we should establish consistent behavior for get() and save(). Bug: T389591 Change-Id: I880997193d6de66121c902de80a77c1305bd01d3
Diffstat (limited to 'includes/ResourceLoader')
0 files changed, 0 insertions, 0 deletions