Previously, I had set up a cached chunk of HTML in my Django template as follows.
{% load cache %}
{% cache 10000 courseTable %} <!-- Cached HTML --> {% endcache %}
Now, I have updated this cached content and want to refresh it. I tried changing the time to no avail:
{% load cache %}
{% cache 0 courseTable %} <!-- Updated Cached HTML --> {% endcache %}
In this case, the page still displays the old cached HTML.
I also tried removing the template tags associated with caching and reinserting them. However, in this case, the content just reverts to the originally cached content after I reinsert the cache template tags.
What can I do? I do not want to wait about 2 hours to reload my cache.
If you could afford to empty memcached entirely, run flush_all
cmd or simply
from django.core.cache import cache
cache.clear()
Or else you have to generate the cache-key manually. The timeout
will not be refreshed until the key is expired.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With