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 | |
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 wagtail_cache-2.5.1.tar.gz
.
File metadata
- Download URL: wagtail_cache-2.5.1.tar.gz
- Upload date:
- Size: 12.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6344342dd0c383ec2eac80195d48aa61a4a1966992a12be23013342f9341c20d |
|
MD5 | ba6720d21fca7be050de8d05d54ae7f3 |
|
BLAKE2b-256 | c438a8bcf6631d360de151bfcf79f980406b8a02d1ef323580e218437bb4d05f |
File details
Details for the file wagtail_cache-2.5.1-py3-none-any.whl
.
File metadata
- Download URL: wagtail_cache-2.5.1-py3-none-any.whl
- Upload date:
- Size: 14.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e8133f88d60bf7c6f97f6858e79d846394c70a22d82722e10c79c3d32d456ad |
|
MD5 | 0d38835f8f85b8e26c67f166b9182dbb |
|
BLAKE2b-256 | a45cfdc1cba5c998dd5379fa70e0d6224e231f1985fd85dc74cab8165cfddbeb |