Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

🧹✨ clear the entire cache or individual caches using the admin or management command.

License

NotificationsYou must be signed in to change notification settings

fabiocaccamo/django-cache-cleaner

Repository files navigation

django-cache-cleaner

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

Installation

  • Runpip install django-cache-cleaner
  • Addcache_cleaner tosettings.INSTALLED_APPS
  • Runpython manage.py migrate
  • Restart your application server

Usage

Admin

To clear caches using the admin panel:

  • ➡️ Navigate to theCache 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

pythonmanage.pyclear_cache

Clear individual caches

pythonmanage.pyclear_cachenewsproducts

Clear all caches

pythonmanage.pyclear_cache--all

Testing

# clone repositorygit clone https://github.com/fabiocaccamo/django-cache-cleaner.git&&cd django-cache-cleaner# create virtualenv and activate itpython -m venv venv&&. venv/bin/activate# upgrade pippython -m pip install --upgrade pip# install requirementspip install -r requirements.txt -r requirements-test.txt# install pre-commit to run formatters and linterspre-commit install --install-hooks# run teststox# orpython runtests.py# orpython -m djangotest --settings"tests.settings"

License

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

About

🧹✨ clear the entire cache or individual caches using the admin or management command.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Contributors2

  •  
  •  

Languages


[8]ページ先頭

©2009-2025 Movatter.jp