ensures that the public access cache refresher is called when a public access item is deleted.

This commit is contained in:
Shannon
2016-01-07 12:18:57 +01:00
parent 6d13d33cfd
commit 3e985acef1

View File

@@ -125,8 +125,9 @@ namespace Umbraco.Web.Cache
//public access events
PublicAccessService.Saved += PublicAccessService_Saved;
PublicAccessService.Deleted += PublicAccessService_Deleted; ;
}
#region Publishing
void PublishingStrategy_UnPublished(IPublishingStrategy sender, PublishEventArgs<IContent> e)
@@ -211,6 +212,11 @@ namespace Umbraco.Web.Cache
DistributedCache.Instance.RefreshPublicAccess();
}
private void PublicAccessService_Deleted(IPublicAccessService sender, DeleteEventArgs<PublicAccessEntry> e)
{
DistributedCache.Instance.RefreshPublicAccess();
}
#endregion
#region Content service event handlers