MediaWiki:Gadget-PurgeOnEdit.js

/* Automatically purge page cache after saving page. This is to help resolve issues with Cargo templates not rendering HTML after editing a page. if(mw.config.get('wgPostEdit') === 'saved') { var api = new mw.Api; api.post({	 action: 'purge',	  titles: mw.config.get('wgPageName')	}).done(function(data) {	  console.log('Page cache purged.');	}); }