From: River Tarnell Date: Wed, 20 Jul 2005 15:02:24 +0000 (+0000) Subject: ponder namespace when creating hash key for cache X-Git-Tag: 1.5.0beta4~89 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=601612d6e17db657a4b2b68586e1cdb51066ca07;p=lhc%2Fweb%2Fwiklou.git ponder namespace when creating hash key for cache --- diff --git a/includes/CacheManager.php b/includes/CacheManager.php index 0360ab8a23..66121de6f1 100644 --- a/includes/CacheManager.php +++ b/includes/CacheManager.php @@ -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 );