aboutsummaryrefslogtreecommitdiffstats
path: root/maintenance/refreshImageCount.php
diff options
context:
space:
mode:
authorTim Starling <tstarling@users.mediawiki.org>2006-10-04 09:06:18 +0000
committerTim Starling <tstarling@users.mediawiki.org>2006-10-04 09:06:18 +0000
commite174a4ddfb96feee0a8305c60aade97c0ee30d3c (patch)
tree6b8754b58f949291b471471b275418a21b237cbe /maintenance/refreshImageCount.php
parentea4e4b0ed1b7d028af1d0d9c7346fb7851a1ef92 (diff)
downloadmediawikicore-e174a4ddfb96feee0a8305c60aade97c0ee30d3c.tar.gz
mediawikicore-e174a4ddfb96feee0a8305c60aade97c0ee30d3c.zip
Abolished $wgDBname as a unique wiki identifier, it doesn't work with the new-fangled feature we call "table prefixes". Instead use wfWikiID() for an identifier containing the DB name and the prefix if there is one, and wfMemcKey() for cache key construction.
Caches for wikis with table prefixes will be lost on upgrade, caches for wikis without table prefixes will be preserved. Custom cache keys in extensions can be migrated at leisure. Extensions which write to core cache keys should be migrated ASAP, as I have done with Special:Makesysop.
Notes
Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/16791
Diffstat (limited to 'maintenance/refreshImageCount.php')
-rw-r--r--maintenance/refreshImageCount.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/maintenance/refreshImageCount.php b/maintenance/refreshImageCount.php
index 15ce2b91a0c6..88ac3c52c31d 100644
--- a/maintenance/refreshImageCount.php
+++ b/maintenance/refreshImageCount.php
@@ -10,7 +10,7 @@ $dbw =& wfGetDB( DB_MASTER );
// Load the current value from the master
$count = $dbw->selectField( 'site_stats', 'ss_images' );
-echo "$wgDBname: forcing ss_images to $count\n";
+echo wfWikiID().": forcing ss_images to $count\n";
// First set to NULL so that it changes on the master
$dbw->update( 'site_stats',
@@ -22,4 +22,4 @@ $dbw->update( 'site_stats',
array( 'ss_images' => $count ),
array( 'ss_row_id' => 1 ) );
-?> \ No newline at end of file
+?>