From 13b73da63bff41c657c77deb5bd18fd7b73fa28a Mon Sep 17 00:00:00 2001 From: Sebastien Ros Date: Thu, 12 Dec 2013 14:11:56 -0800 Subject: [PATCH] Fixing infinite loop when clearing output cache --- .../Orchard.OutputCache/Services/DefaultCacheStorageProvider.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Orchard.Web/Modules/Orchard.OutputCache/Services/DefaultCacheStorageProvider.cs b/src/Orchard.Web/Modules/Orchard.OutputCache/Services/DefaultCacheStorageProvider.cs index 5a3d0f21d..ddda8e781 100644 --- a/src/Orchard.Web/Modules/Orchard.OutputCache/Services/DefaultCacheStorageProvider.cs +++ b/src/Orchard.Web/Modules/Orchard.OutputCache/Services/DefaultCacheStorageProvider.cs @@ -38,6 +38,7 @@ namespace Orchard.OutputCache.Services { foreach (var item in items) { Remove(item.CacheKey); } + items = GetCacheItems(0, 100).ToList(); } }