You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When <grandchild> first check if it's "owned", it will cache the result on its Resource, as does <child>. When we mark <owner> as the owner of <child>, we update <child>'s cache owner (#5898). But, <grandchild> is unaware of this change, because it has cached a now-out-of-date ownership.
We cannot blindly change the ownership of <grandchild> to <owner>, since it may be directly owned by <child>. But, we can just removed the cached value, and let the logic figure out the correct ownership on the next request.
The text was updated successfully, but these errors were encountered:
Are there real cases that we have two layers of ownership? remove cached value and figure out ownership info every time is correct. But If we never have this kind of use cases (two layers of ownership), I feel it can be a waste of resources.
A follow up to #5898.
Imagine:
When
<grandchild>
first check if it's "owned", it will cache the result on itsResource
, as does<child>
. When we mark<owner>
as the owner of<child>
, we update<child>
's cache owner (#5898). But,<grandchild>
is unaware of this change, because it has cached a now-out-of-date ownership.We cannot blindly change the ownership of
<grandchild>
to<owner>
, since it may be directly owned by<child>
. But, we can just removed the cached value, and let the logic figure out the correct ownership on the next request.The text was updated successfully, but these errors were encountered: