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 based on the Django cache middleware.

Documentation | Source code on GitHub

PyPI - Downloads PyPI PyPI - Python Version PyPI - Django Version PyPI - Wheel

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 similar to 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 split out into this separate package. Wagtail Cache is tried and tested, and is in use successfully on many live production sites.

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.2.tar.gz (8.0 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.2-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wagtail-cache-0.5.2.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for wagtail-cache-0.5.2.tar.gz
Algorithm Hash digest
SHA256 f9b77439d230922f7de406f86921515f464d23648a6a78beed774371ef9cad12
MD5 3686c387a73efdbcf9e7e79d3e6f9e51
BLAKE2b-256 d86f54ffa9193d579fab8f6f69a8cbc45e88a1eea77b018729a14aed9a4ede24

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wagtail_cache-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 11.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for wagtail_cache-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 05ddcfab816b08c98e7981b137121e407b6074cc4c69494ecd2430c5c942a617
MD5 0e7b8f1a813e7dbaa6593ce3cdf3a837
BLAKE2b-256 677b8751ca3ca34bff6965a622819a2462cbd5d1094dd74222e301ed640f7ba3

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