Last modified: 2011-04-14 15:10:27 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T22453, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 20453 - Cache evaluated invariant parts of messages
Cache evaluated invariant parts of messages
Status: NEW
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
unspecified
All All
: Low enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
http://lists.wikimedia.org/pipermail/...
: i18n
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-08-31 17:30 UTC by Purodha Blissenbach
Modified: 2011-04-14 15:10 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Purodha Blissenbach 2009-08-31 17:30:55 UTC
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.
Comment 1 Roan Kattouw 2009-08-31 19:11:28 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links