src/core/framework/core/3rdparty/dwoo/Dwoo/Template/String.php
protected function getCacheFilename(Dwoo $dwoo)
	{
		// no cache id provided, use request_uri as default
		if ($this->cacheId === null) {
			if (isset($_SERVER['REQUEST_URI']) === true) {
				$cacheId = $_SERVER['REQUEST_URI'];
			} elseif (isset($_SERVER['SCRIPT_FILENAME']) && isset($_SERVER['argv'])) {
				$cacheId = $_SERVER['SCRIPT_FILENAME'].'-'.implode('-', $_SERVER['argv']);
			} else {
				$cacheId = '';
			}
			// force compiled id generation
			$this->getCompiledFilename($dwoo);

			$this->cacheId = str_replace('../', '__', $this->compileId . strtr($cacheId, '\\%?=!:;'.PATH_SEPARATOR, '/-------'));
		}
		return $dwoo->getCacheDir() . $this->cacheId.'.html';
	}
protected function getCacheFilename(Dwoo $dwoo)
	{
		// no cache id provided, use request_uri as default
		if ($this->cacheId === null) {
			if (isset($_SERVER['REQUEST_URI']) === true) {
				$cacheId = $_SERVER['REQUEST_URI'];
			} elseif (isset($_SERVER['SCRIPT_FILENAME']) && isset($_SERVER['argv'])) {
				$cacheId = $_SERVER['SCRIPT_FILENAME'].'-'.implode('-', $_SERVER['argv']);
			} else {
				$cacheId = '';
			}
			// force compiled id generation
			$this->getCompiledFilename($dwoo);

			$this->cacheId = str_replace('../', '__', $this->compileId . strtr($cacheId, '\\%?=!:;'.PATH_SEPARATOR, '/-------'));
		}
		return $dwoo->getCacheDir() . $this->cacheId.'.html';
	}
protected function getCacheFilename ( Dwoo $ dwoo ) { // no cache id provided, use request_uri as default if ( $ this -> cacheId === null ) { if ( isset ( $ _SERVER [ 'REQUEST_URI' ] ) === true ) { $ cacheId = $ _SERVER [ 'REQUEST_URI' ] ; } elseif ( isset ( $ _SERVER [ 'SCRIPT_FILENAME' ] ) && isset ( $ _SERVER [ 'argv' ] ) ) { $ cacheId = $ _SERVER [ 'SCRIPT_FILENAME' ] . '-' . implode ( '-' , $ _SERVER [ 'argv' ] ) ; } else { $ cacheId = '' ; } // force compiled id generation $ this -> getCompiledFilename ( $ dwoo ) ; $ this -> cacheId = str_replace ( '../' , '__' , $ this -> compileId . strtr ( $ cacheId , '\\%?=!:;' . PATH_SEPARATOR , '/-------' ) ) ; } return $ dwoo -> getCacheDir ( ) . $ this -> cacheId . '.html' ; }
returns the full cached file name and assigns a default value to it if
required

@param Dwoo $dwoo the dwoo instance that requests the file name
@return string the full path to the cached file
returns the full cached file name and assigns a default value to it if required