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
{{ message }}
Repository navigation
AbsoluteExpiry of caller overridden/ignored if child called that causes cache entry with shorter expiry #10962
If method A caches for 12 hours and calls method B which caches for 5 minutes, the result for method A will only be cached for 5 minutes.
Logically this appears to make sense but this happens without the caller for Method A knowing about it. Consider the situation where method A goes on to make calls to a system that has a quota that mustn't be called too frequently. There should at least be an error if Method A has set an absolute expiry that is subsequently ignored/overridden by the call to Method B.
The actual behaviour appears to contradict the bullet point above but that could depend on your interpretation of which is child and which is parent in the scenario I've described: "When one cache entry is used to create another, the child copies the parent entry's expiration tokens and time-based expiration settings. The child isn't expired by manual removal or updating of the parent entry."
"When one cache entry is used to create another, the child copies the parent entry’s expiration tokens and time-based expiration settings. The child isn’t expired by manual removal or updating of the parent entry."
But perhaps this is talking about an entirely different scenario of creating child cache items.
Activity
Rick-Anderson commentedon Feb 15, 2019
You can open a issue for that at https://github.com/aspnet/AspNetCore/issues
What bullet point in the doc? What would you like see changed in the doc?
LittleColin commentedon Feb 18, 2019
Thanks for the response @Rick-Anderson. The bullet point was the part I quoted (it was "above" when I created this issue on https://docs.microsoft.com/...):
"When one cache entry is used to create another, the child copies the parent entry’s expiration tokens and time-based expiration settings. The child isn’t expired by manual removal or updating of the parent entry."
But perhaps this is talking about an entirely different scenario of creating child cache items.
mkArtakMSFT commentedon Jun 29, 2020
@ericstj another caching related issue.
ericstj commentedon Jun 30, 2020
cc @maryamariyan @eerhardt
ericstj commentedon Jun 30, 2020
Also cc @sebastienros who made the change referenced here.
Rick-Anderson commentedon Sep 29, 2022
@mkArtakMSFT https://github.com/dotnet/aspnetcore-internal/wiki/Team-Ownership doesn't say who own's caching so adding label

re-Artak, feel free to use another labelmkArtakMSFT commentedon Oct 24, 2022
Fixed and rerouted to @adityamandaleeka