Registry / devops / django-clearcache

django-clearcache

JSON →
library1.2.1pypypi✓ verified 81d ago

A Django app that provides an admin interface and a manage.py command to clear the cache. Current version 1.2.1, supports Django 2.2+ and Python 3.7+. Maintained, low release cadence.

pip install django-clearcache
INSTALL
IMPORT
SIG · DJANGO-CLEARCACHE
D
django-clearcache
devopspythonv1.2.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ClearCacheCommand
from clearcache.management.commands.clearcache import Command as ClearCacheCommand
from django_clearcache.management.commands.clearcache import Command as ClearCacheCommand

Add 'django_clearcache' to INSTALLED_APPS, then use the management command or admin interface.

# settings.py INSTALLED_APPS = [ ... 'django_clearcache', ] # Run management command: # python manage.py clearcache # Or via admin: visit /admin/clearcache/ (requires staff permissions)
Debug
Known issues
gotchaThe app clears ALL caches defined in CACHES setting. There is no option to clear only a specific cache backend.
fix
If you need selective clearing, consider writing a custom management command or using Django's cache.clear() on specific cache instances.
affects: all
deprecatedDjango 4.0+ changed the cache key structure; ensure your cache backend is compatible. No changes needed for django-clearcache itself but clearing might affect other apps expecting old key format.
fix
Test cache clearing behavior with your specific cache backend after upgrading Django.
affects: >=4.0
Upgrade
Version history
1.2.1latest on PyPI · released Apr 15, 2021
Audit
Dependencies
Djangorequiredrequires Django framework
Agent activity
15 hits · last 30 days
node
12
Resources
django-clearcache — pip install django-clearcache · libregistry