Adds a constant id for the media distributed cache object,
adds extension method to DistrubutedCache to refresh the media cache, Changes all distrubuted cache calls for media to use extension method.
This commit is contained in:
@@ -74,9 +74,7 @@ namespace Umbraco.Web
|
||||
|
||||
if (allServers && UmbracoSettings.UseDistributedCalls)
|
||||
{
|
||||
DistributedCache.Instance.Refresh(
|
||||
new Guid("B29286DD-2D40-4DDB-B325-681226589FEC"),
|
||||
mediaId);
|
||||
DistributedCache.Instance.RefreshMediaCache(mediaId);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user