/** * Returns file name. * @param string * @return string */ protected function getCacheFile($key) { return parent::getCacheFile(substr_replace( $key, trim(strtr($this->hint, '\\/@', '.._'), '.') . '-', strpos($key, NCache::NAMESPACE_SEPARATOR) + 1, 0 )) . '.php'; }
public function initialize() { date_default_timezone_set('Europe/Prague'); NFileStorage::$useDirectories = TRUE; $this->getService("session")->exists() && $this->getService("session")->start(); header('X-Frame-Options: SAMEORIGIN'); }
protected function getCacheFile($key) { return parent::getCacheFile($key) . '.php'; }