mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
#20157: Changing OutputCache to use absolute expiration instead of sliding expiration
Work Item: 20157
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user