DistributedCache - don't serialize payload on local node

This commit is contained in:
Stephan
2015-04-08 14:21:58 +02:00
parent 918bb761b2
commit 99ff86aefb
10 changed files with 144 additions and 37 deletions

View File

@@ -145,6 +145,16 @@ namespace Umbraco.Web.Cache
id);
}
public void RefreshByPayload(Guid factoryGuid, object payload)
{
if (factoryGuid == Guid.Empty || payload == null) return;
ServerMessengerResolver.Current.Messenger.PerformRefresh(
ServerRegistrarResolver.Current.Registrar.Registrations,
GetRefresherById(factoryGuid),
payload);
}
/// <summary>
/// Notifies the distributed cache, for a specified <see cref="ICacheRefresher"/>.
/// </summary>