Localisation updates for core special pages aliases from translatewiki.net
[lhc/web/wiklou.git] / maintenance / purgeList.php
index 9bf7c1b..ab8ff9f 100644 (file)
@@ -1,7 +1,9 @@
 <?php
-
 /**
  * Send purge requests for listed pages to squid
+ *
+ * @file
+ * @ingroup Maintenance
  */
 
 require_once( "commandLine.inc" );
@@ -19,6 +21,9 @@ while( !feof( $stdin ) ) {
                        $url = $title->getFullUrl();
                        echo "$url\n";
                        $urls[] = $url;
+                       if( isset( $options['purge'] ) ) {
+                               $title->invalidateCache();
+                       }
                } else {
                        echo "(Invalid title '$page')\n";
                }
@@ -31,4 +36,4 @@ $u->doUpdate();
 
 echo "Done!\n";
 
-?>
+