Hi all, I've been experimenting with an expensive query I need to call (essentially grabbing data from some Google APIs). I tried this experiment:
- A sitewide cache with a long (days) expiry time - A template fragment with its own separate cache *inside* a view cached by the sitewide cache -- this fragment simply displays the current time. - A view function which clears the named template fragment cache. The behaviour I expected was that on first pageload, the fragment would display the time of page render, and all subsequent reloads would display the same time. This was true. The second part, though, was that I expected to be able to call the view function to clear the fragment cache and then reload the page to see the time update. This didn't happen. Is it possible to achieve this behaviour? Essentially I want to run a background cron task which just hits the Google API and updates my cached fragments - the Google data changes every 15 minutes but the sitewide cache has several hours timeout, normally. Hope this makes sense. Matt -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.