Difference between revisions of "Template:Purge"

From Chevy Wiki
Jump to navigation Jump to search
 
m (1 revision)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| cellspacing="4" cellpadding="4" style="width:{{{width}}}; float:{{{align|right}}}; border: 1px solid #aaa; font-size: 90%; padding: 4px; margin: {{ #switch: {{{align}}} | left = 1em 1em 1em 0em | center = auto | 1em 0em 1em 1em }}; background-color: #f9f9f9;clear:{{{align}}};"
<span class="plainlinks" id="purgelink">[{{fullurl:{{{page|{{FULLPAGENAME}}}}}|action=purge}} {{{1|Purge}}}]</span><noinclude>
|-
{{documentation}}
|align="left"|{{#if:{{{quote|{{{1|}}} }}}|{{{quote|{{{1}}} }}} |{{{quote}}} }}{{#if:{{{2|{{{source|}}} }}}|<br /><span style="align:right;">&mdash;{{{2|{{{source}}} }}}</span>}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
|}<!-- Inserted from [[Template:Quote box]] --><noinclude>{{documentation}}</noinclude>
</noinclude>

Latest revision as of 15:00, 3 February 2009

Purge

[edit] Template-info.svg Template documentation

{{Purge}} produces a link that will clear the cache and rebuild page from the wikitext.

Purpose

For efficiency in service, MediaWiki caches 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 transclusion.

{{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.

Examples

Code:

  • {{purge}}
  • {{purge|Purge this page's server cache.}}

Yields:

See also

ar:قالب:إفراغ الكاش es:Plantilla:Purgar eu:Txantiloi:Birkarga ia:Patrono:Purge id:Templat:Purge ja:Template:Purge zh:Template:Purge