/**
* Contain the CacheManager class
* @package MediaWiki
+ * @subpackage Cache
*/
/**
* Handles talking to the file cache, putting stuff in and taking it back out.
* Mostly called from Article.php, also from DatabaseFunctions.php for the
* emergency abort/fallback to cache.
- *
+ *
* Global options that affect this module:
* $wgCachePages
* $wgCacheEpoch
* $wgUseFileCache
* $wgFileCacheDirectory
* $wgUseGzip
- * @package MediaWiki
+ * @package MediaWiki
*/
class CacheManager {
var $mTitle, $mFileCache;
}
function fileCacheName() {
- global $wgFileCacheDirectory, $wgContLang;
+ global $wgFileCacheDirectory;
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 );