private function isCached(string $path)
	{
		$views = glob($this->cacheDirectory . $this->DS . '*'. str_replace($this->DS, '___', $path));

		if (count($views) > 0) {
			$this->canRecache($path, $views[0]);
			return file_get_contents($views[0]) == null ? ' ' : file_get_contents($views[0]);
		}
		else {
			$this->cache($path, uniqid());
		}

		$views = glob($this->cacheDirectory . $this->DS . '*'. str_replace($this->DS, '___', $path));
		if (count($views) > 0) {
			return file_get_contents($views[0]) == null ? ' ' : file_get_contents($views[0]);
		}
	}
private function isCached(string $path)
	{
		$views = glob($this->cacheDirectory . $this->DS . '*'. str_replace($this->DS, '___', $path));

		if (count($views) > 0) {
			$this->canRecache($path, $views[0]);
			return file_get_contents($views[0]) == null ? ' ' : file_get_contents($views[0]);
		}
		else {
			$this->cache($path, uniqid());
		}

		$views = glob($this->cacheDirectory . $this->DS . '*'. str_replace($this->DS, '___', $path));
		if (count($views) > 0) {
			return file_get_contents($views[0]) == null ? ' ' : file_get_contents($views[0]);
		}
	}
private function isCached ( string $ path ) { $ views = glob ( $ this -> cacheDirectory . $ this -> DS . '*' . str_replace ( $ this -> DS , '___' , $ path ) ) ; if ( count ( $ views ) > 0 ) { $ this -> canRecache ( $ path , $ views [ 0 ] ) ; return file_get_contents ( $ views [ 0 ] ) == null ? ' ' : file_get_contents ( $ views [ 0 ] ) ; } else { $ this -> cache ( $ path , uniqid ( ) ) ; } $ views = glob ( $ this -> cacheDirectory . $ this -> DS . '*' . str_replace ( $ this -> DS , '___' , $ path ) ) ; if ( count ( $ views ) > 0 ) { return file_get_contents ( $ views [ 0 ] ) == null ? ' ' : file_get_contents ( $ views [ 0 ] ) ; } }
Cache view and return cached view

@param  string $path
@return string $cached
Cache view and return cached view