I\'ve got a pretty simple site where I\'m using the page_cache
decorator.
I have a cronjob that checks for new data and processes it if it\'s available.
(This is r
It's a bug #19896 that looks to be fixed in 1.6.
If you are using an older version doing something like the following should make the clear work as expected.
from django.db import router, transaction
def clear_cache(the_cache):
the_cache.clear()
# commit the transaction
db = router.db_for_write(the_cache.cache_model_class)
transaction.commit_unless_managed(using=db)
This just makes sure that the transaction gets committed.