Support for cache invalidation on `bulk_update()` method
Currently, support for bulk_create() is present but not bulk_update(). Any thoughts on adding this?
Some inspiration can be taken from https://github.com/Suor/django-cacheops/issues/136
.bulk_create() is already invalidated, you can look at the code in here. Unlike .bulk_update() it already had all changed objects with all their fields, do it doesn't require extra database queries to invalidate.
Hi @Suor .. not sure why this was closed? It doesn't indicate the problem was resolved.
I have started to use bulk_update and realised the updates were not invalidated in the cache leading to strange behaviour in the application.
Is it best not to use bulk_update when using django-cacheops?
Not sure why I closed this. There might be no efficient way to handle this though, requires some investigation.