(bug 18487) Another fix for r48379: move up getMemcKey() as well
authorRoan Kattouw <catrope@users.mediawiki.org>
Thu, 16 Apr 2009 20:16:21 +0000 (20:16 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Thu, 16 Apr 2009 20:16:21 +0000 (20:16 +0000)
includes/filerepo/FileRepo.php

index 22e41d1..aaf5486 100644 (file)
@@ -599,4 +599,9 @@ abstract class FileRepo {
        function getMasterDB() {
                return wfGetDB( DB_MASTER );
        }
+
+       function getMemcKey( $key ) {
+               return wfWikiID( $this->getSlaveDB() ) . ":{$key}";
+       }
+
 }