Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vicktornl/wagtail-cache-invalidator


https://github.com/vicktornl/wagtail-cache-invalidator

Last synced: 10 days ago
JSON representation

Awesome Lists containing this project

README

        

# Wagtail Cache Invalidator

[![Version](https://img.shields.io/pypi/v/wagtail-cache-invalidator.svg?style=flat)](https://pypi.python.org/pypi/wagtail-cache-invalidator/)

Invalidate and purge (frontend) cache via an user-friendly interface in the Wagtail CMS.

![Purge](./docs/purge.jpg)

## Features

- Invalidate cache manually via the Wagtail CMS
- Site settings driven frontend cache settings (no code/deployments needed in order to change your settings)
- Purge all cache (use with caution)

## Requirements

- Python 3
- Django >= 2
- Wagtail >= 3
- wagtail-modeladmin==2.0.0
- [Frontend cache invalidator](https://docs.wagtail.io/en/stable/reference/contrib/frontendcache.html)

## Installation

Install the package

```
pip install wagtail-cache-invalidator
```

Add `wagtail_cache_invalidator` to your `INSTALLED_APPS` and make sure the [frontend cache invalidator](https://docs.wagtail.io/en/stable/reference/contrib/frontendcache.html) is setup.

```
INSTALLED_APPS = [
...
"wagtail_cache_invalidator",
]
```

Run migrate

```
manage.py migrate
```