AutoPurge

AutoPurge is a JavaScript snippet that enables users to automatically purge certain pages listed in a window.autoPurgePages array.
Alternatively, if users wish to purge all pages in a specific namespace, this can be achieved through a slight modification of the window variable, as shown in the "Installation" section.
== ==
Pages the user wishes to have automatically purged are stored in a window variable, to be inserted prior to the importArticles statement:
window.autoPurgePages = ["User:Fandom", "User_talk:Fandom"];
Alternatively, if the user wishes to purge each page in a namespace, the following code may be used:
if (mw.config.get("wgNamespaceNumber") === 2) {
 window.autoPurgePages = [mw.config.get("wgPageName")];
}
== Changelog ==
Date 	Description
August 4, 2017	Initial revision.