Streamlines how macro cache is handled
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using Umbraco.Core;
|
||||
using Umbraco.Core.Cache;
|
||||
using umbraco.interfaces;
|
||||
|
||||
namespace Umbraco.Web.Cache
|
||||
@@ -20,7 +21,7 @@ namespace Umbraco.Web.Cache
|
||||
|
||||
public void RefreshAll()
|
||||
{
|
||||
ApplicationContext.Current.ApplicationCache.ClearCacheByKeySearch("UmbracoUser");
|
||||
ApplicationContext.Current.ApplicationCache.ClearCacheByKeySearch(CacheKeys.UserCacheKey);
|
||||
}
|
||||
|
||||
public void Refresh(int id)
|
||||
@@ -30,7 +31,7 @@ namespace Umbraco.Web.Cache
|
||||
|
||||
public void Remove(int id)
|
||||
{
|
||||
ApplicationContext.Current.ApplicationCache.ClearCacheItem(string.Format("UmbracoUser{0}", id.ToString()));
|
||||
ApplicationContext.Current.ApplicationCache.ClearCacheItem(string.Format("{0}{1}", CacheKeys.UserCacheKey, id.ToString()));
|
||||
}
|
||||
|
||||
public void Refresh(Guid id)
|
||||
|
||||
Reference in New Issue
Block a user