classes/database.php
/**
	 * Search the cache for this query's result set; return if found
	 *
	 * @param string $sql query to run
	 * @param array $params for the prepared statement
	 * @return mixed
	 */
Search the cache for this query's result set; return if found
@param string $sql query to run
@param array $params for the prepared statement
@return mixed
Search the cache for this query ' s result set ; return if found @param string $sql query to run @param array $params for the prepared statement @return mixed
protected function _cache($sql, array $params = array())
	{
		$hash = $sql;
		foreach($params as $param)
		{
			$hash .= md5($param);
		}
		$hash = sha1($hash);
		if($results = cache::get($hash, $cache))
		{
			return $results;
		}
	}
protected function _cache ( $ sql , array $ params = array ( ) ) { $ hash = $ sql ; foreach ( $ params as $ param ) { $ hash .= md5 ( $ param ) ; } $ hash = sha1 ( $ hash ) ; if ( $ results = cache :: get ( $ hash , $ cache ) ) { return $ results ; } }
Search the cache for this query's result set; return if found
 @param string $sql query to run
 @param array $params for the prepared statement
 @return mixed
Search the cache for this query ' s result set ; return if found @param string $sql query to run @param array $params for the prepared statement @return mixed