Sales Over Time report HTTP cache seems incorrect
Posted: Thu Nov 07, 2013 7:39 am
I'm troubleshooting an issue with the dashboard Sales Over Time report. While reviewing the code, I noticed this:
Shouldn't the absolute cache expiration be based upon LOCAL time, not UTC?
Especially since you're using a CacheWrapper() class which establishes a cache entry date value using LocalNow.
Code: Select all
Cache.Add(cacheKey, cacheWrapper, null, DateTime.UtcNow.AddMinutes(5).AddSeconds(-1), TimeSpan.Zero, System.Web.Caching.CacheItemPriority.High, null);
Especially since you're using a CacheWrapper() class which establishes a cache entry date value using LocalNow.