-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Closed
Labels
area-middlewareIncludes: URL rewrite, redirect, response cache/compression, session, and other general middlewaresIncludes: URL rewrite, redirect, response cache/compression, session, and other general middlewaresfeature-output-caching
Description
void RemoveFromTags(object key, object? value, EvictionReason reason, object? state) |
If an OutputCache entry is created with tags, and then is replaced, the PostEvictionCallback that is registered (RemoveFromTags
) will remove tags, even though a new cache entry item has replaced the old cache entry.
The tags are then lost as the old entry's eviction has deleted the new entry's tags.
It seems like there needs to be some sort of state saved with the _taggedEntries
(maybe just a guid?) And that state needs to be passed to the PostEvictionCallback so that only the tags that were registered with the correct entry are removed.
The RedisOutputCacheStore seems to function correctly.
lupos
Metadata
Metadata
Assignees
Labels
area-middlewareIncludes: URL rewrite, redirect, response cache/compression, session, and other general middlewaresIncludes: URL rewrite, redirect, response cache/compression, session, and other general middlewaresfeature-output-caching