From e174a4ddfb96feee0a8305c60aade97c0ee30d3c Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Wed, 4 Oct 2006 09:06:18 +0000 Subject: 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. --- maintenance/refreshImageCount.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'maintenance/refreshImageCount.php') 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 +?> -- cgit v1.2.3