Followup to r86053 - fix special page cases
[mediawiki.git] / includes / cache / ObjectFileCache.php
blob3356f1fc204a9d7fce8cd89ffe73bd92c1e542ff
1 <?php
2 /**
3 * Contain the ObjectFileCache class
4 * @file
5 * @ingroup Cache
6 */
7 class ObjectFileCache extends FileCacheBase {
8 /**
9 * Construct an ObjectFileCache from a key and a type
10 * @param $key string
11 * @param $type string
12 * @return ObjectFileCache
14 public static function newFromKey( $key, $type ) {
15 $cache = new self();
17 $cache->mKey = (string)$key;
18 $cache->mType = (string)$type;
20 return $cache;
23 /**
24 * Get the base file cache directory
25 * @return string
27 protected function cacheDirectory() {
28 return $this->baseCacheDirectory() . '/object';