Wikia Developers Wiki


713pages on
this wiki

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


  • For site-wide use, add the line below to your wiki's MediaWiki:ImportJS page:
    type: 'script',
    articles: [

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


Change the text

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

PurgeButtonText = 'purge';
    type: 'script',
    articles: [

Other languages

Post translations on the talk page, please!

Start a Discussion Discussions about PurgeButton

  • DebugButton

    13 messages
    • King Dragonhoff wrote:How do I test to see if it works? It does not seem to be changing the actual text in the address bar. I was recently in n...
    • King Dragonhoff wrote:Okay, that's what I thought. I was just wondering if there was a little bit of script I could put in the console to test ...

Around Wikia's network

Random Wiki