I have a website that has a lot of festivals and concerts (events). I want to cache the whole output of the page to speed things up. But when a festival is in the past (expired) I don't want to serve it from cache but just fresh from the database. Those pages aren't visited very often so there is no need to cache it.
Would it be possible to add an extra flag to the {% cache %} block to allow the toggle?
I have a website that has a lot of festivals and concerts (events). I want to cache the whole output of the page to speed things up. But when a festival is in the past (expired) I don't want to serve it from cache but just fresh from the database. Those pages aren't visited very often so there is no need to cache it.
Would it be possible to add an extra flag to the
{% cache %}
block to allow the toggle?For example: