Home

Awesome

<!-- [![](https://img.shields.io/codacy/grade/{id}?logo=codacy)](https://www.codacy.com/app/fabiocaccamo/django-cache-cleaner) -->

django-cache-cleaner

clear the entire cache or individual caches easily using the admin panel or management command.

Installation

Usage

Admin

To clear caches using the admin panel:

Command

This package doesn't need any setting.

Clear default cache

python manage.py clear_cache

Clear individual caches

python manage.py clear_cache news products

Clear all caches

python manage.py clear_cache --all

Testing

# clone repository
git clone https://github.com/fabiocaccamo/django-cache-cleaner.git && cd django-cache-cleaner

# create virtualenv and activate it
python -m venv venv && . venv/bin/activate

# upgrade pip
python -m pip install --upgrade pip

# install requirements
pip install -r requirements.txt -r requirements-test.txt

# install pre-commit to run formatters and linters
pre-commit install --install-hooks

# run tests
tox
# or
python runtests.py
# or
python -m django test --settings "tests.settings"

License

Released under MIT License.


Supporting

See also