Skip to main content

A simple page cache for Wagtail based on the Django cache middleware.

Project description

Wagtail Cache

A simple page cache for Wagtail using the Django cache middleware.

Documentation | Source code on GitHub

pip install wagtail-cache

Why Wagtail Cache?

Django has a robust cache middleware that already has the functionality needed to cache web pages effectively. But turning the cache middleware on will blindly cache every request and does not work well with a wagtail site.

Wagtail Cache provides a decorator that works well with wagtail pages to appropriately cache and serve them using Django's cache middleware.

The end result is ultra-fast page serving that requires zero database hits to serve cached pages. Other solutions such as template caching still require database hits for wagtail to serve a page.

Notes

This cache feature was originally part of coderedcms and has been in use successfully on live production sites. Eventually the coderedcms cache will be replaced with wagtail-cache after it has been tested.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wagtail-cache-0.5.1.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wagtail_cache-0.5.1-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file wagtail-cache-0.5.1.tar.gz.

File metadata

  • Download URL: wagtail-cache-0.5.1.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for wagtail-cache-0.5.1.tar.gz
Algorithm Hash digest
SHA256 c63f6ebf8ccd6b433d87eebe82549d930fb5f747e98976fd95ddfc24da80301a
MD5 53ecaa160d7a2ff20a91dac723603e1b
BLAKE2b-256 12de7e89f99668f5fcdf1aa1f4754095b3178b52e72ed1a49547ea5ccd9a4866

See more details on using hashes here.

File details

Details for the file wagtail_cache-0.5.1-py3-none-any.whl.

File metadata

  • Download URL: wagtail_cache-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for wagtail_cache-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2e965e8632d345ddd414d2df3edfbff52ab3dfccb4c7af477c185e06c7cf5f5e
MD5 2bfcb2974c764ca4bc7157c94b44515c
BLAKE2b-256 7bc4a1d58b2ab269a7bc4fc54f795f4158cdbfd4d01321658967167aad7676d6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page