Skip to main content

OpenSSF Scorecard

django-cache-cleaner

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

Installation

  • Run pip install django-cache-cleaner
  • Add cache_cleaner to settings.INSTALLED_APPS
  • Run python manage.py migrate
  • Restart your application server

Usage

Admin

To clear caches using the admin panel:

  • ➡️ Navigate to the Cache Cleaner / Caches
  • ✔️ Check the caches you want to clear
  • 🧹 Select "Clear selected caches" from the actions menu
  • ✨ Done :)

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

  • django-admin-interface - the default admin interface made customizable by the admin itself. popup windows replaced by modals. 🧙 ⚡

  • django-colorfield - simple color field for models with a nice color-picker in the admin. 🎨

  • django-email-validators - no more invalid or disposable emails in your database. ✉️ ✅

  • django-extra-settings - config and manage typed extra settings using just the django admin. ⚙️

  • django-maintenance-mode - shows a 503 error page when maintenance-mode is on. 🚧 🛠️

  • django-redirects - redirects with full control. ↪️

  • django-treenode - probably the best abstract model / admin for your tree based stuff. 🌳

  • python-benedict - dict subclass with keylist/keypath support, I/O shortcuts (base64, csv, json, pickle, plist, query-string, toml, xml, yaml) and many utilities. 📘

  • python-codicefiscale - encode/decode Italian fiscal codes - codifica/decodifica del Codice Fiscale. 🇮🇹 💳

  • python-fontbro - friendly font operations. 🧢

  • python-fsutil - file-system utilities for lazy devs. 🧟‍♂️

Metadata

Release files for django-cache-cleaner 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-cache-cleaner 0.3.0
File Size Uploaded
django_cache_cleaner-0.3.0.tar.gz 12.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-cache-cleaner 0.3.0
File Interpreter ABI Platform
django_cache_cleaner-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 24.1 kB

Release files / django_cache_cleaner-0.3.0.tar.gz

Download URL django_cache_cleaner-0.3.0.tar.gz
Size 12.4 kB
Tags Source
SHA-256 checksum
How to use checksums
3840374fc9e58f7bd6ebb37bb683a39602dba8990ffb7bc7e1aef9a0f69d3eec
BLAKE2b-256 checksum
How to use checksums
cf927fdc0ffda460dcf0d3a1dcae8d716da584eae3ce07826e96595f26cc2139
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 13, 2026.

Transparency log

Release files / django_cache_cleaner-0.3.0-py3-none-any.whl

Download URL django_cache_cleaner-0.3.0-py3-none-any.whl
Size 11.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d6ec252f4b36642943660a78fbbb7b2afa4d5e3e482986c70832f6f1cc3125a8
BLAKE2b-256 checksum
How to use checksums
3fbf73fbddfdc3fb0c5bb93826ca432da92803bf8c743fc0292a4a5b399aac59
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 13, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page