Empty cache issue with children
Today, when we cache a resource, we also cache every children or nested resource we find in the current graph. For example:
inbox
notification-1
object-1
notification-2
object-1
If we GET inbox
-> we cache inbox
, notification-1
, object-1
and notification-2
.
When we clear the cache, it clears only the requested container/resource. Let's say we want to clear the inbox
cache, we then have
inbox CLEARED
notification-1 NOT CLEARED
object-1 NOT CLEARED
notification-2 NOT CLEARED
object-1 NOT CLEARED
Are we supposed to loop over the graph when we clear the cache to also clear all the nested objects? Or should we just override the cache with the new datas? And then, how do we know when to do so?