0PricingLogin
Flask Academy · Lesson

Set Up Flask-Caching

Choose a backend and init the cache.

Why Caching Matters

When the same answer gets computed over and over, you waste time. Caching stores a result once and serves it instantly next time. ⚡

What Flask-Caching Adds

Flask-Caching is an extension that bolts a cache layer onto your app, so you can save view output or function results with almost no code.

All lessons in this course

  1. Set Up Flask-Caching
  2. Cache a View with cached
  3. Memoize Expensive Functions
  4. Invalidate and Expire Cache Entries
← Back to Flask Academy