Explicit disable MySQL query cache in some parts of program

Posted by jack on Stack Overflow See other posts from Stack Overflow or by jack
Published on 2010-03-19T02:23:17Z Indexed on 2010/03/19 2:31 UTC
Read the original article Hit count: 303

Filed under:
|
|
|
|

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 probably do not hope MySQL to cache queries in those programs to save memory usage and improve query cache efficiency.

Is it possible to turn off MySQL query cache explicitly in those programs while keep it enabled for other parts including all views.py?

© Stack Overflow or respective owner

Related posts about django

Related posts about python