I am wondering if there is a way to allow the user to control the caching properties of a given view using Flask-Cache.
For example, I would like for a view to be cached indefinitely unless the user clicks a reload
link, in which case the view would be re-generated. I noticed there is an unless
kwarg available to @cached decorator, but I am not sure how one would use this.
It seems that I should be able to add a url_for('this_view', dont_cache=True)
somewhere on this_view
's Jinja template.