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 | |
Build |
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":
-
Was sourced from the Fork Awesome project at https://github.com/ForkAwesome/Fork-Awesome.
-
Is licensed under the Creative Commons Attribution 3.0 Unported license, a copy of which is available at https://creativecommons.org/licenses/by/3.0/
-
Has been modified from the original sources.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28071332bfdcb743f874475fa93149fdb68b7ef78cb9e80ae98e378a7779e83c |
|
MD5 | 8f4ccf2fef6bc49017a36cc111c23403 |
|
BLAKE2b-256 | f03407f9bc72a656a2421a5ec27632e24fa1856b008d24e67e2eade68e570882 |
File details
Details for the file cjkcms_cache-2.3.2-py3-none-any.whl
.
File metadata
- Download URL: cjkcms_cache-2.3.2-py3-none-any.whl
- Upload date:
- Size: 13.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f91f245e6a0df65ce3b928257e11cba77b1edb1117e4da466450ba2af6206a4b |
|
MD5 | 1bc5fe31cbebc6057fab5b6454769ba3 |
|
BLAKE2b-256 | 63e9b267b358751b3d881d10fd323b542febe8d9bc9cb21505b4f4335b9447f7 |