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 - Django 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

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-1.0.2.tar.gz (9.4 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-1.0.2-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wagtail-cache-1.0.2.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.2

File hashes

Hashes for wagtail-cache-1.0.2.tar.gz
Algorithm Hash digest
SHA256 589e523262fc0c39ecb82856a56bac8f3dec1c5276cea9e1ba23b1b843b9551b
MD5 0d77fa5aa5d5dd4b3d99c577ae0c962c
BLAKE2b-256 e6043d2ec0374b56845c5853c91d53b4f9ce1c2c1cbb3081bcfa8f47a559e75b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wagtail_cache-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 11.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.2

File hashes

Hashes for wagtail_cache-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 04a638f1cb8c32e89d6227799e6b59d9d472c8a5577355600ae4ed4a6f2b90b5
MD5 13979403bb218101041ce4bf219824bf
BLAKE2b-256 a46f982fbbc33833401870b167731509ce6198e2e88926e06a65e3312391676d

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