ensures that the public access cache refresher is called when a public access item is deleted.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user