#20157: Changing OutputCache to use absolute expiration instead of sliding expiration

Work Item: 20157
This commit is contained in:
Lombiq
2013-10-02 22:11:24 +02:00
committed by Zoltán Lehóczky
parent 77e5657f26
commit 61b614a0bb

View File

@@ -5,6 +5,7 @@ using System.Linq;
using Orchard.OutputCache.Models;
using Orchard;
using Orchard.Environment.Configuration;
using Orchard.Services;
namespace Orchard.OutputCache.Services {
public class DefaultCacheStorageProvider : IOutputCacheStorageProvider {
@@ -21,8 +22,8 @@ namespace Orchard.OutputCache.Services {
key,
cacheItem,
null,
System.Web.Caching.Cache.NoAbsoluteExpiration,
new TimeSpan(0, 0, cacheItem.ValidFor),
cacheItem.ValidUntilUtc,
System.Web.Caching.Cache.NoSlidingExpiration,
System.Web.Caching.CacheItemPriority.Normal,
null);
}