Sales Over Time report HTTP cache seems incorrect

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Sales Over Time report HTTP cache seems incorrect

Post by AbleMods » 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:

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.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

User avatar
ForumsAdmin
AbleCommerce Moderator
AbleCommerce Moderator
Posts: 399
Joined: Wed Mar 13, 2013 7:19 am

Re: Sales Over Time report HTTP cache seems incorrect

Post by ForumsAdmin » Fri Nov 08, 2013 12:26 am

I agree. We will have a look into this.

Post Reply