dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Localisation updates for core special pages aliases from translatewiki.net
[lhc/web/wiklou.git]
/
maintenance
/
purgeList.php
diff --git
a/maintenance/purgeList.php
b/maintenance/purgeList.php
index
9bf7c1b
..
ab8ff9f
100644
(file)
--- a/
maintenance/purgeList.php
+++ b/
maintenance/purgeList.php
@@
-1,7
+1,9
@@
<?php
<?php
-
/**
* Send purge requests for listed pages to squid
/**
* Send purge requests for listed pages to squid
+ *
+ * @file
+ * @ingroup Maintenance
*/
require_once( "commandLine.inc" );
*/
require_once( "commandLine.inc" );
@@
-19,6
+21,9
@@
while( !feof( $stdin ) ) {
$url = $title->getFullUrl();
echo "$url\n";
$urls[] = $url;
$url = $title->getFullUrl();
echo "$url\n";
$urls[] = $url;
+ if( isset( $options['purge'] ) ) {
+ $title->invalidateCache();
+ }
} else {
echo "(Invalid title '$page')\n";
}
} else {
echo "(Invalid title '$page')\n";
}
@@
-31,4
+36,4
@@
$u->doUpdate();
echo "Done!\n";
echo "Done!\n";
-?>
+