Flask - Performance Optimization
Which of the following is the correct way to cache a Flask route response for 60 seconds using Flask-Caching?
@cache.cached with a named argument timeout=60 to set cache duration.cache.cache which is invalid. @cached(60)
def my_route():
return 'Hello' misses the cache. instance prefix.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions