public function isCacheEnabled() { return $this->cacheFilename !== NULL; }
/** * @return Parser */ public function getParser() { $parser = new Parser($this->config->isLowercaseMode()); if (!$this->config->isCacheEnabled()) { return $parser; } return new CachingParser($this->getCache(), $parser); }