Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes Flask-Cache references to Flask-Caching #111

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions source/views.rst
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@ can we speed things up quickly, so all of these visitors don't miss out
on our site?

There are a lot of good answers, but this section is about caching, so
we'll talk about that. Specifically, we're going to use the `Flask-Cache <http://pythonhosted.org/Flask-Cache/>`_
we'll talk about that. Specifically, we're going to use the `Flask-Caching <https://flask-caching.readthedocs.io/en/latest/>`_
extension. This extension provides us with a decorator that we can use
on our index view to cache the response for some period of time.

Flask-Cache can be configured to work with a bunch of different caching
Flask-Caching can be configured to work with a bunch of different caching
backends. A popular choice is `Redis <http://redis.io/>`_, which is easy to set-up and use.
Assuming Flask-Cache is already configured, this code block shows what our
decorated view would look like.
Expand Down