flask-cache icon indicating copy to clipboard operation
flask-cache copied to clipboard

Improve documentation: clarify if route decorator is before or after cache decorator

Open rturk opened this issue 11 years ago • 0 comments

Correct usage is ?

@route("/") @cache.cached(timeout=50) def index(): return render_template('index.html')

or

@cache.cached(timeout=50) @route("/") def index(): return render_template('index.html')

rturk avatar May 14 '14 00:05 rturk