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

  • :star: Star this project on GitHub
  • :octocat: Follow me on GitHub
  • :blue_heart: Follow me on Bluesky
  • :moneybag: Sponsor me on Github

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. 🧟‍♂️

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_cache_cleaner-0.3.0.tar.gz (12.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_cache_cleaner-0.3.0-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

Details for the file django_cache_cleaner-0.3.0.tar.gz.

File metadata

  • Download URL: django_cache_cleaner-0.3.0.tar.gz
  • Upload date:
  • Size: 12.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for django_cache_cleaner-0.3.0.tar.gz
Algorithm Hash digest
SHA256 3840374fc9e58f7bd6ebb37bb683a39602dba8990ffb7bc7e1aef9a0f69d3eec
MD5 7f7512cdaec3aa56d569066d1982690d
BLAKE2b-256 cf927fdc0ffda460dcf0d3a1dcae8d716da584eae3ce07826e96595f26cc2139

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_cache_cleaner-0.3.0.tar.gz:

Publisher: create-release.yml on fabiocaccamo/django-cache-cleaner

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file django_cache_cleaner-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_cache_cleaner-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d6ec252f4b36642943660a78fbbb7b2afa4d5e3e482986c70832f6f1cc3125a8
MD5 f86f298fdd9d1bb47e7dfeee5466f3c8
BLAKE2b-256 3fbf73fbddfdc3fb0c5bb93826ca432da92803bf8c743fc0292a4a5b399aac59

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_cache_cleaner-0.3.0-py3-none-any.whl:

Publisher: create-release.yml on fabiocaccamo/django-cache-cleaner

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 files

0.2.0

2 files

0.1.0

2 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