classes/cache.php
/**
	 * Fetch an item's age
	 */
Fetch an item's age
Fetch an item ' s age
public static function age($id)
	{
		if($result = Database::instance()->fetch('SELECT "timestamp" FROM "cache" WHERE "id" = ?', array(sha1($id))))
		{
			return $result[0]->timestamp;
		}
	}
public static function age ( $ id ) { if ( $ result = Database :: instance ( ) -> fetch ( 'SELECT "timestamp" FROM "cache" WHERE "id" = ?' , array ( sha1 ( $ id ) ) ) ) { return $ result [ 0 ] -> timestamp ; } }
Fetch an item's age
Fetch an item ' s age