mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-07-16 02:56:31 +08:00
Remove cache by tag on Unpublished (#8483)
As it was, cached lists/projections would not be evicted when a ContentItem they contained was unpublished.
This commit is contained in:
parent
f23d9292c5
commit
7131970e91
@ -13,6 +13,7 @@ namespace Orchard.OutputCache.Handlers {
|
||||
|
||||
// Evict cached content when updated, removed or destroyed.
|
||||
OnPublished<IContent>((context, part) => Invalidate(part));
|
||||
OnUnpublished<IContent>((context, part) => Invalidate(part));
|
||||
OnRemoved<IContent>((context, part) => Invalidate(part));
|
||||
OnDestroyed<IContent>((context, part) => Invalidate(part));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user