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:
Shannon Deminick
2013-02-07 04:01:50 +06:00
parent a1c2352dca
commit 84bd89f00b
3 changed files with 13 additions and 4 deletions

View File

@@ -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
{