Abolished $wgDBname as a unique wiki identifier, it doesn't work with the new-fangled...
authorTim Starling <tstarling@users.mediawiki.org>
Wed, 4 Oct 2006 09:06:18 +0000 (09:06 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Wed, 4 Oct 2006 09:06:18 +0000 (09:06 +0000)
commite174a4ddfb96feee0a8305c60aade97c0ee30d3c
tree6b8754b58f949291b471471b275418a21b237cbe
parentea4e4b0ed1b7d028af1d0d9c7346fb7851a1ef92
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.
46 files changed:
includes/BagOStuff.php
includes/DateFormatter.php
includes/DifferenceEngine.php
includes/FileStore.php
includes/GlobalFunctions.php
includes/Image.php
includes/LinkCache.php
includes/LoadBalancer.php
includes/MemcachedSessions.php
includes/MessageCache.php
includes/ParserCache.php
includes/ProfilerSimpleUDP.php
includes/ProfilerStub.php
includes/ProxyTools.php
includes/Revision.php
includes/Setup.php
includes/Skin.php
includes/SkinTemplate.php
includes/SpecialAllpages.php
includes/SpecialRecentchanges.php
includes/SpecialUserlogin.php
includes/SpecialWatchlist.php
includes/Title.php
includes/User.php
includes/WatchedItem.php
languages/Language.php
languages/LanguageConverter.php
maintenance/FiveUpgrade.inc
maintenance/InitialiseMessages.inc
maintenance/attachLatest.php
maintenance/backup.inc
maintenance/checkUsernames.php
maintenance/cleanupDupes.inc
maintenance/cleanupTable.inc
maintenance/cleanupWatchlist.php
maintenance/createAndPromote.php
maintenance/deleteImageMemcached.php
maintenance/deleteRevision.php
maintenance/dumpInterwiki.inc
maintenance/dumpTextPass.php
maintenance/generateSitemap.php
maintenance/rebuildImages.php
maintenance/refreshImageCount.php
maintenance/stats.php
maintenance/update.php
maintenance/userDupes.inc