Q:

Possible to exclude some query from Mysql query cache?

In my site i have 20 simple querys cachable and 5 pretty big query no cachable on each page . So just activate mysql query cache isnot a good idea here, sure my 20 simple querys will cached but I loose 10% time processing for my 5 big querys for nothing.I'd like to say " hey mysql, don't try to test thoses 5 querys "
I Would like to use query cache just for some querys and exclude others..
So, is it possible to choose who's query will cahable with mysql,
or if not, do you know some other solution for that or an advise for my situation   ?
thanks for ur lights
regards
Jess

A:

Well the solution is pretty simple :
Just use SQL_NO_CACHE in your select statement to exlude some query from mysql query cache,
so thoses query will not loose time processing for test if this query is cachable or not !
SELECT SQL_NO_CACHE whatyouwant

Hope it helps

