In my Django application, I repeatedly run the same query on my database (e.g. every 10 seconds). I then create an MD5 sum over the queryset I receive and compare that to the MD5 sum I created in the previous run. If both are equal, the data has not changed and the web page does not need updating.
While I do this, the data in the DB might change.
However, the query returns the same queryset, apparently due to query caching.
How can I disable the query cache and explicitely execute the query on the DB ?