added manual purge action
authorGabriel Wicke <gwicke@users.mediawiki.org>
Sat, 13 Mar 2004 16:09:00 +0000 (16:09 +0000)
committerGabriel Wicke <gwicke@users.mediawiki.org>
Sat, 13 Mar 2004 16:09:00 +0000 (16:09 +0000)
index.php

index 584e555..66a5845 100644 (file)
--- 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" );
        }