Last modified: 2014-05-30 21:11:54 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 T33834, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 31834 - Add an option to disable template caching
Add an option to disable template caching
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Templates (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Brad Jorsch
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-10-19 23:35 UTC by vlakoff
Modified: 2014-05-30 21:11 UTC (History)
5 users (show)

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


Attachments

Description vlakoff 2011-10-19 23:35:42 UTC
When rendering a page, the result of a template with the same given parameters is only calculated the first time, and other same transclusions are taken from a cache.

This is usually fine, but may be undesirable, in rare cases.

For example, consider this case:

lorem ipsum 1<ref>AAA</ref>
{{reflist}}

lorem ipsum 2<ref>BBB</ref>
{{reflist}}

Here, the 2nd transclusion gives a wrong result.

I think it may be nice to implement a keyword, like __NOTEMPLATECACHE__ which, as its name implies, would make template re-rendered. Of course, this option wouldn't (and has not to) be used often, but it would be useful in some edge cases.
Comment 1 vlakoff 2011-10-19 23:38:04 UTC
Of course, the keyword would have to be added in the template's page.
Comment 2 Gerrit Notification Bot 2013-12-07 00:58:35 UTC
Change 99792 had a related patch set uploaded by Anomie:
Add PPFrame::isVolatile and PPFrame::setVolatile

https://gerrit.wikimedia.org/r/99792
Comment 3 Gerrit Notification Bot 2013-12-07 00:59:05 UTC
Change 99793 had a related patch set uploaded by Anomie:
Mark parser hook output as volatile

https://gerrit.wikimedia.org/r/99793
Comment 4 Gerrit Notification Bot 2014-05-30 18:21:36 UTC
Change 99792 merged by jenkins-bot:
Add PPFrame::isVolatile and PPFrame::setVolatile

https://gerrit.wikimedia.org/r/99792
Comment 5 Gerrit Notification Bot 2014-05-30 21:09:19 UTC
Change 99793 merged by jenkins-bot:
Mark parser hook output as volatile

https://gerrit.wikimedia.org/r/99793
Comment 6 Jackmcbarn 2014-05-30 21:11:54 UTC
Templates containing ref or reflist tags will no longer be cached. This change will be live on all WMF wikis starting on June 12th.

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


Navigation
Links