Fandom Developers Wiki
Advertisement

PurgeButton adds a "Refresh" option to page controls. A "Refresh" purges both Wikia's caches and your browser's cache.

Usage

  • For site-wide use, add the line below to your wiki's MediaWiki:ImportJS page:
    dev:PurgeButton/code.js
importArticles({
    type: 'script',
    articles: [
        'u:dev:MediaWiki:PurgeButton/code.js'
    ]
});

If you're already using importArticles(), you can import the script by adding the below to the article list.

"u:dev:PurgeButton/code.js",

Change the text

To change the text of the button, set PurgeButtonText before the import, like this:

PurgeButtonText = 'purge';

importArticles({
    type: 'script',
    articles: [
        'u:dev:PurgeButton/code.js'
    ]
});

Other languages

Post translations on the talk page, please!

Advertisement