protected function setupMd5Cache() { global $wgDBname; $md5Cache = \Wikia\Swift\File\Md5Cache::getInstance(); $md5CacheFile = sprintf("%s/%s/%s/%s.md5list", self::MD5_CACHE_DIRECTORY, substr($wgDBname, 0, 1), substr($wgDBname, 0, 2), $wgDBname); $md5Cache->setCacheFile($md5CacheFile); $this->md5Cache = $md5Cache; }
public function loadMd5() { if ($this->md5 === null) { $this->md5 = Md5Cache::getInstance()->get($this->localPath); } }