I can't seem to find any tutorial on how to do this.
So, I basically want to add caching to my Django project. I made a blog view, that should be cached and updated only if the model got changed since last caching.
How do I do this?
I can't seem to find any tutorial on how to do this.
So, I basically want to add caching to my Django project. I made a blog view, that should be cached and updated only if the model got changed since last caching.
How do I do this?
You could clear the cache after creating or updating the object using signal post-save signal
Another alternative is to overload the save method of the model and after saving it calls to cache clear