When we realize data in the cache is out-of-date, for instance, when setting a grade that is already set (it gives an error), we should update the data and try to make the change again.
We need to adapt the data structures to remember changes. This way we can refresh only the bad objects in the cache, instead of clearing the cache.
When we realize data in the cache is out-of-date, for instance, when setting a grade that is already set (it gives an error), we should update the data and try to make the change again.
We need to adapt the data structures to remember changes. This way we can refresh only the bad objects in the cache, instead of clearing the cache.