Understand exactly what's happening in your cache layer. Visualize hit rates, inspect stored keys, and debug invalidation issues so you can stop guessing and start optimizing.
pip install dj-cache-panel| Key | Backend | TTL | Hits | Status |
|---|---|---|---|---|
| views.homepage | Redis | 300s | 1,284 | active |
| views.product_42 | Redis | 600s | 847 | active |
| api.user_prefs | Memcached | 120s | 2,103 | active |
| template.nav_frag | File | 3600s | 432 | stale |
Features
No external dashboards. No extra infrastructure. Just your Django admin, supercharged.
Visualize cache hit rates over time. Understand how effective your caching strategy really is.
Browse cached keys with TTL, size, and value details. See exactly what's stored and when it expires.
Track key expiration patterns and identify keys with suboptimal TTLs dragging down your hit rate.
Debug cache invalidation issues and perform bulk operations. Clear specific keys or entire cache backends.
Works with Memcached, Redis, file-based, database, and custom cache backends. No vendor lock-in.
Leverages Django's built-in auth and permissions system. Control who sees what with standard admin access.
Installation
pip install dj-cache-panelINSTALLED_APPS = [
# ...
"dj_control_room_base",
"dj_cache_panel",
]urlpatterns = [
# ...
path("admin/dj-control-room-base/", include("dj_control_room_base.urls")),
path("admin/dj-cache-panel/", include("dj_cache_panel.urls")),
path("admin/", admin.site.urls),
]Restart your Django server and navigate to the Control Room in your admin. The Cache panel will appear automatically.
Part of the suite
dj-cache-panel is one of several admin-native panels. Explore Redis monitoring, Celery task queues, URL mapping, and more.
New panels, project updates, and Django content straight to your inbox.