Explicit Disable Mysql Query Cache In Some Parts Of Program
In a Django project, some cronjob programs are mainly used for administrative or analysis purposes, e.g. generating site usage stats, rotating user activities log, etc. We probabl
Solution 1:
Per http://dev.mysql.com/doc/refman/5.1/en/query-cache-configuration.html
Individual clients can control cache behavior for their own connection by setting the SESSION query_cache_type value. For example, a client can disable use of the query cache for its own queries like this:
mysql> SET SESSION query_cache_type = OFF;
There's not usually a compelling reason to bother, though. The query cache isn't nearly as important as you might think, particularly during off-peak periods (which I assume is when you would run the cron jobs).
Post a Comment for "Explicit Disable Mysql Query Cache In Some Parts Of Program"