I read this post https://stackoverflow.com/a/23115561/1765681 . It works but it make global. So my admin page get cached. And I don't want that.
For example. If I want to set cache control only to this:
@app.route('/')
def list_posts():
entries = db_session.query(Entry).order_by(desc(Entry.id)).limit(5)
return render_template('list.html', entries=entries)
what should I do?