Caching

When your application runs slow, throw some caches in. Well, at leastit’s the easiest way to speed up things. What does a cache do? Say youhave a function that takes some time to complete but the results wouldstill be good enough if they were 5 minutes old. So then the idea is thatyou actually put the result of that calculation into a cache for sometime.

Flask itself does not provide caching for you, but Flask-Caching, anextension for Flask does. Flask-Caching supports various backends, and it iseven possible to develop your own caching backend.