From e233cffb9d3f9469444ffe4c4bc124f50a48adba Mon Sep 17 00:00:00 2001 From: Shannon Date: Wed, 21 Aug 2013 11:19:27 +1000 Subject: [PATCH] Changes the cache keys in PluginManager to reference a const to make it a bit more clear. --- src/Umbraco.Core/PluginManager.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Core/PluginManager.cs b/src/Umbraco.Core/PluginManager.cs index a12add664b..f798c2a454 100644 --- a/src/Umbraco.Core/PluginManager.cs +++ b/src/Umbraco.Core/PluginManager.cs @@ -36,6 +36,7 @@ namespace Umbraco.Core internal class PluginManager { private readonly ApplicationContext _appContext; + private const string CacheKey = "umbraco-plugins.list"; /// /// Creates a new PluginManager with an ApplicationContext instance which ensures that the plugin xml @@ -250,7 +251,7 @@ namespace Umbraco.Core XDocument xml; if (_appContext != null) { - xml = _appContext.ApplicationCache.GetCacheItem("umbraco-plugins.list", + xml = _appContext.ApplicationCache.GetCacheItem(CacheKey, new TimeSpan(0, 0, 5, 0), () => XDocument.Load(filePath)); } @@ -303,7 +304,7 @@ namespace Umbraco.Core if (_appContext != null) { - _appContext.ApplicationCache.ClearCacheItem("umbraco-plugins.list"); + _appContext.ApplicationCache.ClearCacheItem(CacheKey); } }