โ† Back to list

Introducing Django ClearCache ๐Ÿค ๐Ÿงน๐Ÿ’ฐ, Allows to Clear Cache via Admin UI or Command Line

Iโ€™ve been working with the Django cache recently. And while Django has exceptional caching capabilities, I was surprised to find out thatโ€ฆ

syscrews in django ยท 2023-10-03 03:06 ยท 3 claps ยท 1.3 min read
#django-clear-cache #django #django-project #django-python #admin-ui
Open on Medium โ†—
Wiki topics: ๐ŸŒ ยท Web Development ๐ŸฅŠ ยท Combat Sports

Introducing Django ClearCache ๐Ÿค ๐Ÿงน๐Ÿ’ฐ, Allows to Clear Cache via Admin UI or Command Line

Iโ€™ve been working with the Django cache recently. And while Django has exceptional caching capabilities, I was surprised to find out that it doesnโ€™t provide a simple way to manually clear a cache.

I checked online and found a couple of clear cache packages for Django, but all of them were too old, and you could only clear cache via the command line.

At the same time, I wanted a package to do the following:

  1. give me the ability to choose a cache I want to clear (Django can have as many cache names/backends as you wish);
  2. allow me to clear cache via admin UI by a click on a button;
  3. allow me to clear cache via manage.py command so I could integrate it into CI/CD pipeline.

โ€ฆ and a few hours later, I came up with the Django ClearCache package that you can now install and use:

pip install django-clearcache

It checks all the points above, hereโ€™s how the UI part looks:

Find the repo here: https://github.com/timonweb/django-clearcache.

Hey, if youโ€™ve found this useful, please share the post to help other folks find it:

In Plain English

Thank you for being a part of our community! Before you go:


๋ฉ”ํƒ€๋ฐ์ดํ„ฐ
post_id
9a87f3ab5070
slug
introducing-django-clearcache-allows-to-clear-cache-via-admin-ui-or-command-line-9a87f3ab5070
url
https://medium.com/dajngo/introducing-django-clearcache-allows-to-clear-cache-via-admin-ui-or-command-line-9a87f3ab5070
canonical_url
https://medium.com/dajngo/introducing-django-clearcache-allows-to-clear-cache-via-admin-ui-or-command-line-9a87f3ab5070
author_url
https://medium.com/@syscrews
status
ok
fetched_at
2026-08-19 12:59:55