So far I have easy solution:
@cache_page(60 * 60 * 24)
def myview()
Which works fine. What bothers me though, that what if table in database changes (someone uploades data), then cached view should be re-evaluated. Moreover, since I rarely and irregularly have DB updates, I would like to not specify the 60 * 60 * 24 (once a day), but be it infinity unless DB's table changes (or maybe entire DB changes).
What do I do? I'm sure there is easy solution.