caching.rst
This file
Path
docs/patterns/caching.rst
18 lines · 675 bytes
Last changed by
Merge pull request #3103 from tbm/typosDavid Lordbefore adoption86bf9dc
History of this fileTake it
The walk stopped after 200 commits: lines older than c74f469 point at it.
Merge pull request #2436 from davidism/loggingDavid Lordbefore adoptionc74f469
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 branch '1.0-maintenance'David Lordbefore adoptionf7d50d4
line 13why, one step back13Flask itself does not provide caching for you, but `Flask-Caching`_, anMerge pull request #3103 from tbm/typosDavid Lordbefore adoption86bf9dc
line 14why, one step back14extension for Flask does. Flask-Caching supports various backends, and it isMerge branch '1.0-maintenance'David Lordbefore adoptionf7d50d4
line 15why, one step back15even possible to develop your own caching backend.Merge pull request #2436 from davidism/loggingDavid Lordbefore adoptionc74f469
lines 16–17why, one step back1617Merge branch '1.0-maintenance'David Lordbefore adoptionf7d50d4
line 18why, one step back18.. _Flask-Caching: https://flask-caching.readthedocs.io/en/latest/