mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-01-19 09:42:29 +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:
committed by
GitHub
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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user