Update DefaultCacheStorageProvider.cs

This commit is contained in:
jtkech
2015-10-02 02:15:08 +02:00
parent f3902feb35
commit 44a342c4fe

View File

@@ -27,7 +27,8 @@ namespace Orchard.OutputCache.Services {
} }
public void Remove(string key) { public void Remove(string key) {
_workContext.HttpContext.Cache.Remove(key); if (_workContext.HttpContext != null)
_workContext.HttpContext.Cache.Remove(key);
} }
public void RemoveAll() { public void RemoveAll() {