Skip to main content

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

Project description

Wagtail Cache

A fast and simple page cache for Wagtail, inspired by the Django cache middleware.

Documentation | Source code on GitHub | PyPI

Status

Python Package PyPI - Python Version PyPI - Wheel PyPI - Downloads PyPI
Build Build Status Azure DevOps tests (branch) Azure DevOps coverage (branch)

Quick Start

Follow the Installation Guide

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 middleware, decorator, and mixin that works well with Wagtail pages, Django views, or even manually on any request/response to efficiently cache and serve from cache.

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.

Wagtail Cache also does not require any additional infrastructure such as Redis, Memcached, proxies, etc. It can work directly off the filesystem, or using any of Django's built-in cache backends.

Contributing

Follow the contributing guide

Attribution

Icon file "wagtailcache-bolt.svg":

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-2.0.0.tar.gz (11.1 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-2.0.0-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wagtail-cache-2.0.0.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for wagtail-cache-2.0.0.tar.gz
Algorithm Hash digest
SHA256 1e5b9b9fa073f812b4e66a52ea1eb4e6379e3796b5a171b8185eef8f19cbeac1
MD5 1c4d94f446c2a1523e39396900d18886
BLAKE2b-256 c1b0439268096aa9e62150e96c9d76c14541b7f93378d8cfe5feb62b9d17e862

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wagtail_cache-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 13.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for wagtail_cache-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 461fe68eabc9b584192e5b7e07d702ed37cf944a8d022a8c6ff7f38b2731afbd
MD5 8eb20d210d6ed123289c9067c2978f24
BLAKE2b-256 f0f920ae32a88d6396f6ea1ed91eb523407dad037b0fe80b7fb048f116167092

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