Rank: Advanced Member
Groups: Authorized User, Developers Joined: 5/30/2020(UTC) Posts: 125
Thanks: 14 times Was thanked: 3 time(s) in 3 post(s)
|
I was running some database tracing so I could understand where my changes were being persisted when making updates via the AC9 CMS interface. I noticed queries on each request to get the current user and user groups, which made sense. However, it is also querying for any store orders with a order date >= the current datetime.
Any idea why this query would be running on every request? It seems like most of the time it wouldn't return any results given date parameter basically being set to the current datetime.
|
|
|
|
Rank: Advanced Member
Groups: Admin, Developers, Registered, HelpDesk, Authorized User Joined: 10/5/2018(UTC) Posts: 704
Thanks: 5 times Was thanked: 113 time(s) in 112 post(s)
|
I think this is happening because of the Google Analytics code that runs on every request if you have enabled this feature. This widget is placed in the footer by default. You can review the function code in WebpageController. Please search the line. Code:public ActionResult GoogleAnalytics()
|
|
|
|
Rank: Advanced Member
Groups: Authorized User, Developers Joined: 5/30/2020(UTC) Posts: 125
Thanks: 14 times Was thanked: 3 time(s) in 3 post(s)
|
So, I set a breakpoint in the WebpagesController and stepped through, watching the SQL Express Profiler output. It is not the GoogleAnalytics action or anything associated with the WebpagesController. It appears to be something wired into the Application_EndRequest event that isn't part of the web application project.
|
|
|
|
Rank: Administration
Groups: Admin, Administrators, HelpDesk, System, Authorized User, Developers, Registered Joined: 10/5/2018(UTC) Posts: 175
Thanks: 8 times Was thanked: 17 time(s) in 15 post(s)
|
You maybe running development license, it must be checked in response to licensing related codes.
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The AbleCommerce Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close