ponder namespace when creating hash key for cache
authorRiver Tarnell <kateturner@users.mediawiki.org>
Wed, 20 Jul 2005 15:02:24 +0000 (15:02 +0000)
committerRiver Tarnell <kateturner@users.mediawiki.org>
Wed, 20 Jul 2005 15:02:24 +0000 (15:02 +0000)
includes/CacheManager.php

index 0360ab8..66121de 100644 (file)
@@ -34,9 +34,8 @@ class CacheManager {
        function fileCacheName() {
                global $wgFileCacheDirectory, $wgContLang;
                if( !$this->mFileCache ) {
-                       $hash = md5( $key = $this->mTitle->getDbkey() );
-                       if( $this->mTitle->getNamespace() )
-                               $key = $wgContLang->getNsText( $this->mTitle->getNamespace() ) . ":" . $key;
+                       $key = $this->mTitle->getPrefixedDbkey();
+                       $hash = md5( $key );
                        $key = str_replace( '.', '%2E', urlencode( $key ) );
                        
                        $hash1 = substr( $hash, 0, 1 );