file = $file; $this->setEvent('IMAGEMOD_CACHE_USE'); parent::__construct($file, $fullext); } /** @inheritdoc */ public function makeDefaultCacheDecision() { if (!file_exists($this->file)) { return false; } return parent::makeDefaultCacheDecision(); } /** * Caching depends on the source and the wiki config * @inheritdoc */ protected function addDependencies() { parent::addDependencies(); $this->depends['files'] = array_merge( [$this->file], getConfigFiles('main') ); } }