From: Gabriel Wicke Date: Sat, 13 Mar 2004 16:09:00 +0000 (+0000) Subject: added manual purge action X-Git-Tag: 1.3.0beta1~807 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/membres/fiche.php?a=commitdiff_plain;h=d3831b1dd3e4b65ee9f7da32e537f9bd68dfcc2d;p=lhc%2Fweb%2Fwiklou.git added manual purge action --- diff --git a/index.php b/index.php index 584e555bdc..66a5845d83 100644 --- a/index.php +++ b/index.php @@ -125,6 +125,11 @@ if ( $search = $wgRequest->getText( 'search' ) ) { $history = new PageHistory( $wgArticle ); $history->history(); break; + case "purge": + wfPurgeSquidServers(array($wgTitle->getInternalURL())); + $wgOut->setSquidMaxage( $wgSquidMaxage ); + $wgArticle->view(); + break; default: $wgOut->errorpage( "nosuchaction", "nosuchactiontext" ); }