From d3831b1dd3e4b65ee9f7da32e537f9bd68dfcc2d Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Sat, 13 Mar 2004 16:09:00 +0000 Subject: [PATCH] added manual purge action --- index.php | 5 +++++ 1 file changed, 5 insertions(+) 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" ); } -- 2.20.1