Hi,

Is there a way to access if a Query is returning its record from QUERY_CACHE or 
not?

E.g.

$sql="SELECT * FROM TABLE";
$result=db_query($sql);
print $result;

//If query NoT returned from mysql_query_cache()
//Would Output something like:
Array["status"]["cached"]=0;
Array["status"]["count"]=1;
Array["data"][0][field1]=1;
Array["data"][0][field2]=2;
Etc...

//ELSE
//Would Output something like:
Array["status"]["cached"]=1;
Array["status"]["count"]=1;
Array["data"][0][field1]=1;
Array["data"][0][field2]=2;
Etc...

Any ideas would be greatly appreciated...

Skex



--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to