fileCache = FileCacheFactory::get('info_parser'); } else { // Just use a static file cache when there is no prefix. This code path is // triggered when info is parsed prior to \Drupal\Core\DrupalKernel::boot() // running. This occurs during the very early installer and in some test // scenarios. $this->fileCache = new FileCache('info_parser', 'info_parser'); } } /** * {@inheritdoc} */ public function parse($filename) { $data = $this->fileCache->get($filename); if ($data === NULL) { $data = parent::parse($filename); $this->fileCache->set($filename, $data); } return $data; } }