https://wiki.wcpl.info/w/index.php?title=Template:Purge/doc&feed=atom&action=historyTemplate:Purge/doc - Revision history2024-03-28T19:01:32ZRevision history for this page on the wikiMediaWiki 1.35.10https://wiki.wcpl.info/w/index.php?title=Template:Purge/doc&diff=5359&oldid=prevJferrell: 1 revision imported2014-08-18T15:59:23Z<p>1 revision imported</p>
<p><b>New page</b></p><div>{{Documentation subpage}}<br />
{{high-use|80000+}}<br />
{{Tlx|Purge}} produces a link that will clear the cache and rebuild page from the wikitext.<br />
<br />
==Purpose==<br />
For efficiency in service, [[MediaWiki]] [[Cache (computing)|cache]]s pages. Depending on the exact sequence of actions editors follow, one may view an out-of-date version of a given page. This happens most often on heavily-edited pages and on pages which contain an instance of [[Wikipedia:Transclusion costs and benefits|transclusion]]. <br />
<br />
{{Tlx|Purge}} adds to any page a link that, when clicked, not only reloads the page, but clears the server cache, forcing the page to be completely rendered "from scratch". This is not a one-time solution; generally, editing a page is itself sufficient to purge cache. Rather, it is a measure taken in anticipation of the frequent need to purge.<br />
<br />
==Examples==<br />
{| class="wikitable"<br />
|-<br />
! Code<br />
! Yields<br />
! Result<br />
|-<br />
| <tt><nowiki>{{Purge}}</nowiki></tt><br />
| {{Purge}}<br />
| Creates a purge link for the page it is used on.<br />
|-<br />
| <tt><nowiki>{{Purge|Purge this page's server cache.}}</nowiki></tt><br />
| {{Purge|Purge this page's server cache.}}<br />
| Creates a purge link for the page it is used on, but with the text "Purge this page's server cache."<br />
|-<br />
| <tt><nowiki>{{Purge|page=Main Page}}</nowiki></tt><br />
| {{Purge|page=Main Page}}<br />
| Creates a purge link for [[Main Page]].<br />
|-<br />
| <tt><nowiki>{{Purge|Purge this page's server cache.|page=Main Page}}</nowiki></tt><br />
| {{Purge|Purge this page's server cache.|page=Main Page}}<br />
| Creates a purge link for [[Main Page]], but with the text "Purge this page's server cache."<br />
|}<br />
<br />
When you are linking to a section, purging that page will cause you to lose the section link.<br />
<br />
==TemplateData==<br />
<templatedata><br />
{<br />
"description": "A template that produces a link that will clear the cache and rebuild page from the wikitext",<br />
"params": {<br />
"1": {<br />
"label": "Label",<br />
"description": "The label of the purge link",<br />
"type": "string",<br />
"default": "Purge",<br />
"required": false<br />
},<br />
"page": {<br />
"label": "Page",<br />
"description": "The page to purge",<br />
"type": "string/wiki-page-name",<br />
"required": false<br />
}<br />
}<br />
}<br />
</templatedata><br />
<br />
==See also==<br />
* {{Tlx|Purge box}}<br />
* {{Tlx|Purge button}}<br />
* {{Tlx|Purge page}}<br />
* [[Wikipedia:Purge]]<br />
* [[commons:Template:Purge]]<br />
<br />
{{basepage subpage<br />
|<!-- ADD CATEGORIES BELOW THIS LINE --><br />
[[Category:Maintenance navigation]]<br />
[[Category:Internal link templates]]<br />
<br />
}}</div>Jferrell