Page MenuHomePhabricator

Cache evaluated invariant parts of messages
Open, LowPublicFeature

Description

http://lists.wikimedia.org/pipermail/wikitech-l/2009-August/044950.html
and the thread preceeding it, there is a suggestion to cache constant
messages having {{SITENAME}} or other invariant content in a way avoiding
the re-interpretation and reparsing them.
While at first sight one would assume that this is done already, increased
load times mentioned in the first post to the thread,
http://lists.wikimedia.org/pipermail/wikitech-l/2009-August/044921.html
suggest that it is not so.

See also:
http://www.mediawiki.org/wiki/Project:Support_desk/Archives/Miscellaneous/007#tuning_MediaWiki:Aboutsite

There is another possible advantage of this kind of caching, when messages
are being passed to JavaScripts, they should be taken from the cache, which
means that the JavaScripts do not have to deal with parsing the wikisyntax
of these invariant parts.


Version: unspecified
Severity: enhancement
URL: http://lists.wikimedia.org/pipermail/wikitech-l/2009-August/044950.html

Details

Reference
bz20453

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 10:50 PM
bzimport set Reference to bz20453.
bzimport added a subscriber: Unknown Object (MLST).

Certain magic words such as {{CURRENTDAY}} have a cache expiry time (usually 1 hour for time-dependant stuff); if we honor those I think we should be fine. Of course the downside is that changing $wgSitename doesn't change {{SITENAME}} immediately, but that's true for page content as well.

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 11:01 AM