public function isCached() {
		if ($this->cached) return true;

		// Passed a cacheId?
		if (!$this->cacheId) return false;

		// Cache file exists?
		if (!file_exists($this->cachePath . $this->cacheId)) return false;

		// Can get the time of the file?
		if (!($mtime = filemtime($this->cachePath . $this->cacheId))) return false;

		// Cache expired?
		if (($mtime + $this->expire) < time()) {
			unlink($this->cachePath . $this->cacheId);
			return false;
		} else {
			/**
			 * Cache the results of this isCached() call.  Why?  So
			 * we don't have to double the overhead for each template.
			 * If we didn't cache, it would be hitting the file system
			 * twice as much (file_exists() & filemtime() [twice each]).
			 */
			$this->cached = true;
			return true;
		}
	}
public function isCached() {
		if ($this->cached) return true;

		// Passed a cacheId?
		if (!$this->cacheId) return false;

		// Cache file exists?
		if (!file_exists($this->cachePath . $this->cacheId)) return false;

		// Can get the time of the file?
		if (!($mtime = filemtime($this->cachePath . $this->cacheId))) return false;

		// Cache expired?
		if (($mtime + $this->expire) < time()) {
			unlink($this->cachePath . $this->cacheId);
			return false;
		} else {
			/**
			 * Cache the results of this isCached() call.  Why?  So
			 * we don't have to double the overhead for each template.
			 * If we didn't cache, it would be hitting the file system
			 * twice as much (file_exists() & filemtime() [twice each]).
			 */
			$this->cached = true;
			return true;
		}
	}
public function isCached ( ) { if ( $ this -> cached ) return true ; // Passed a cacheId? if ( ! $ this -> cacheId ) return false ; // Cache file exists? if ( ! file_exists ( $ this -> cachePath . $ this -> cacheId ) ) return false ; // Can get the time of the file? if ( ! ( $ mtime = filemtime ( $ this -> cachePath . $ this -> cacheId ) ) ) return false ; // Cache expired? if ( ( $ mtime + $ this -> expire ) < time ( ) ) { unlink ( $ this -> cachePath . $ this -> cacheId ) ; return false ; } else { /**
			 * Cache the results of this isCached() call.  Why?  So
			 * we don't have to double the overhead for each template.
			 * If we didn't cache, it would be hitting the file system
			 * twice as much (file_exists() & filemtime() [twice each]).
			 */ $ this -> cached = true ; return true ; } }
Test to see whether the currently loaded cacheId has a valid
corrosponding cache file.

@return boolean
Test to see whether the currently loaded cacheId has a valid corrosponding cache file .