Jan 22, 2020 · Updated: Jan 04, 2021 · by Tim Kamanin
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:
manage.pycommand 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:
Hey, if you've found this useful, please share the post to help other folks find it: