2👍
✅
There’s a way to manually delete cached items in django. Search in the documentation for cache.delete
and cache.delete_many
. In your django views you could programatically decide when to invalidate (or delete) the cached item based on whatever rules you want. To avoid the TIME_OUT issue just give an enough long time out to not be reached.
There are also few similar questions in SO that might help you … see this one …
Source:stackexchange.com