Page 1 of 1

Sales Over Time report HTTP cache seems incorrect

Posted: Thu Nov 07, 2013 7:39 am
by AbleMods
I'm troubleshooting an issue with the dashboard Sales Over Time report. While reviewing the code, I noticed this:

Code: Select all

Cache.Add(cacheKey, cacheWrapper, null, DateTime.UtcNow.AddMinutes(5).AddSeconds(-1), TimeSpan.Zero, System.Web.Caching.CacheItemPriority.High, null);
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.

Re: Sales Over Time report HTTP cache seems incorrect

Posted: Fri Nov 08, 2013 12:26 am
by ForumsAdmin
I agree. We will have a look into this.