Purge.js: Difference between revisions
(New page: // addPurge addOnloadHook(function () { var hist; var url; if (!(hist = document.getElementById('ca-history') )) return; if (!(url = hist.getElementsByTagName('a')[0] )) return...) |
(No difference)
|
Latest revision as of 15:41, 16 March 2008
// addPurge addOnloadHook(function () { var hist; var url; if (!(hist = document.getElementById('ca-history') )) return; if (!(url = hist.getElementsByTagName('a')[0] )) return; if (!(url = url.href )) return; addPortletLink('p-cactions', url.replace(/([?&]action=)history([&#]|$)/, '$1purge$2'),'purge', 'ca-purge', 'Purge server cache for this page', '0', document.getElementById('ca-watch')); }); // end Purge