caching.rst
This file
Path
docs/patterns/caching.rst
18 lines · 676 bytes
Last changed by
Merge pull request #2993 from data-get/update-cache-documentationDavid Lordbefore adoption877da63
History of this fileTake it
The walk stopped after 200 commits: lines older than 85fa8aa point at it.
Merge pull request #2430 from erebus1/env_url_scheme_fixDavid Lordbefore adoption85fa8aa
lines 1–12why, one step back1.. _caching-pattern:23Caching4=======56When your application runs slow, throw some caches in. Well, at least7it's the easiest way to speed up things. What does a cache do? Say you8have a function that takes some time to complete but the results would9still be good enough if they were 5 minutes old. So then the idea is that10you actually put the result of that calculation into a cache for some11time.12Merge pull request #2993 from data-get/update-cache-documentationDavid Lordbefore adoption877da63
lines 13–15why, one step back13Flask itself does not provide caching for you, but `Flask-Caching`_, an14extentions for Flask does. Flask-Caching supports various backends, and it is15even possible to develop your own caching backend.Merge pull request #2430 from erebus1/env_url_scheme_fixDavid Lordbefore adoption85fa8aa
lines 16–17why, one step back1617Merge pull request #2993 from data-get/update-cache-documentationDavid Lordbefore adoption877da63
line 18why, one step back18.. _Flask-Caching: https://flask-caching.readthedocs.io/en/latest/