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.0.tar.gz (7.5 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.0-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wagtail-cache-0.5.0.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.2

File hashes

Hashes for wagtail-cache-0.5.0.tar.gz
Algorithm Hash digest
SHA256 afed741c74262493cac04ee5e8eff54b139a6c443c1ea559f32180ba50fff4fe
MD5 405fbc26e9d603660e5f51ac14a57f8e
BLAKE2b-256 e522565f3b5bc5daca6a384f4d4373cc1b4c7f30d1da36f56fd32d2d38ddff21

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wagtail_cache-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.2

File hashes

Hashes for wagtail_cache-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 65a0a3a84d87086a58a34df771c17d07ebe5fe25d8bb3f89c112a88ea9f30574
MD5 334eee82c136435afcaca9357f41025d
BLAKE2b-256 9b4ae669acd61c14f8af3c8c19e623a25a3a4e08314af5e705da09d04aa43a75

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