summaryrefslogtreecommitdiff
path: root/maintenance/deleteImageMemcached.php
diff options
context:
space:
mode:
Diffstat (limited to 'maintenance/deleteImageMemcached.php')
-rw-r--r--maintenance/deleteImageMemcached.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/maintenance/deleteImageMemcached.php b/maintenance/deleteImageMemcached.php
index 4e17d21e..6af0e3a9 100644
--- a/maintenance/deleteImageMemcached.php
+++ b/maintenance/deleteImageMemcached.php
@@ -14,7 +14,7 @@ class DeleteImageCache {
}
function main() {
- global $wgMemc, $wgDBname;
+ global $wgMemc;
$fname = 'DeleteImageCache::main';
ini_set( 'display_errors', false );
@@ -32,9 +32,9 @@ class DeleteImageCache {
while ( $row = $dbr->fetchObject( $res ) ) {
if ($i % $this->report == 0)
- printf("%s: %13s done (%s)\n", $wgDBname, "$i/$total", wfPercent( $i / $total * 100 ));
+ printf("%s: %13s done (%s)\n", wfWikiID(), "$i/$total", wfPercent( $i / $total * 100 ));
$md5 = md5( $row->img_name );
- $wgMemc->delete( "$wgDBname:Image:$md5" );
+ $wgMemc->delete( wfMemcKey( 'Image', $md5 ) );
if ($this->sleep != 0)
usleep( $this->sleep );