Skip to main content

A simple page cache for Wagtail based on the Django cache middleware. Forked from wagtail-cache.

Project description

Wagtail (CJKCMS) Cache

Project forked from [https://github.com/coderedcorp/wagtail-cache](Wagtail Cache) to add support for Wagtail 6. Original project is still at Wagtail 5 compatibility, making it unusable with https://github.com/cjkpl/wagtail-cjkcms.git.

Package name is left without change (wagtailcache), so it can be used as drop-in replacement for original package.

===========

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

cjkcms-cache-2.3.2.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

cjkcms_cache-2.3.2-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

Details for the file cjkcms-cache-2.3.2.tar.gz.

File metadata

  • Download URL: cjkcms-cache-2.3.2.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for cjkcms-cache-2.3.2.tar.gz
Algorithm Hash digest
SHA256 28071332bfdcb743f874475fa93149fdb68b7ef78cb9e80ae98e378a7779e83c
MD5 8f4ccf2fef6bc49017a36cc111c23403
BLAKE2b-256 f03407f9bc72a656a2421a5ec27632e24fa1856b008d24e67e2eade68e570882

See more details on using hashes here.

File details

Details for the file cjkcms_cache-2.3.2-py3-none-any.whl.

File metadata

File hashes

Hashes for cjkcms_cache-2.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f91f245e6a0df65ce3b928257e11cba77b1edb1117e4da466450ba2af6206a4b
MD5 1bc5fe31cbebc6057fab5b6454769ba3
BLAKE2b-256 63e9b267b358751b3d881d10fd323b542febe8d9bc9cb21505b4f4335b9447f7

See more details on using hashes here.

Supported by

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