About Clearing Server Cache

To clear server cache (like Memcached or Redis) you can do this in Django:

1
2
>>> from django.core.cache import cache
>>> cache.clear()

Tips and Tricks Dev Ops Django 4.2 Django 3.2 Django 2.2 Django 1.11 Django 1.8