/** * Saves entry content. If entry exists it will be updated, otherwise created. * * @param CacheElement $element * * @return bool * @throws FilesystemException * @throws SecurityViolationException Specified cache path was found to be dangerous (eg. /../../sandbox) */ public function saveElement(CacheElement $element) { $path = $element->getPath() . '/index.' . $element->getType(); //Type contains extension return $this->finder->writeFile($path, $element->getContent()); }