https://bugzilla.wikimedia.org/show_bug.cgi?id=58929

       Web browser: ---
            Bug ID: 58929
           Summary: Parameterless templates incorrectly cache dynamic
                    functions
           Product: MediaWiki
           Version: 1.21.1
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Templates
          Assignee: wikibugs-l@lists.wikimedia.org
          Reporter: robinhoo...@live.ca
    Classification: Unclassified
   Mobile Platform: ---

Parameterless templates seem to always be cached, regardless of the presence of
dynamic functions within them.

As a simple example, install the DynamicFunctions extension from
https://www.mediawiki.org/wiki/Extension:DynamicFunctions and create a new
template, DieRoll, whose contents are simply {{#rand:1|6}}. Now, call
{{DieRoll}} repeatedly from the same page. As added proof, add a dummy
parameter and observe that the template is no longer cached (as noted on
https://bugzilla.wikimedia.org/show_bug.cgi?id=30425) and that DieRoll is now
random, as it should be.

If this can't be detected directly, I'd like to suggest adding a new magic
work, like __DYNAMIC__ that will force the MediaWiki not to cache a template.

(Tested on 1.21.1, but I assume this hasn't changed recently.)

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to