{"id":4548,"date":"2021-03-23T12:06:23","date_gmt":"2021-03-23T18:06:23","guid":{"rendered":"https:\/\/www.whitefirdesign.com\/blog\/?p=4548"},"modified":"2022-08-01T12:25:01","modified_gmt":"2022-08-01T18:25:01","slug":"dealing-with-slow-loading-of-zen-cart-admin-dashboard-in-zen-cart-1-5-7","status":"publish","type":"post","link":"https:\/\/www.whitefirdesign.com\/blog\/2021\/03\/23\/dealing-with-slow-loading-of-zen-cart-admin-dashboard-in-zen-cart-1-5-7\/","title":{"rendered":"Dealing With Slow Loading of Zen Cart Admin Dashboard in Zen Cart 1.5.7"},"content":{"rendered":"<p>While working on a recent <a href=\"https:\/\/www.whitefirdesign.com\/services\/zen-cart-upgrade.html\">Zen Cart upgrade<\/a>, we ran into an issue where the admin dashboard went from loading nearly instantaneously to taking at least 5 seconds to load in Zen Cart 1.5.7. The page loading would pause when the &#8220;New orders&#8221; section was next to be shown, so that seemed to be the source of this. That seemed to either be because of a bug or a change that significantly increased the amount of data being processed.<\/p>\n<p>It turns out to be the later, as Zen Cart 1.5.7 by default <a href=\"https:\/\/www.zen-cart.com\/showthread.php?227011-Done-v157a-Slow-admin-home-page-load-due-to-attribute-details\">queries attribute data for products when generating that section<\/a>, which can significantly slow things down in some circumstances.<\/p>\n<p>As of Zen Cart 1.5.7a, there is a simple way to disable that and return to previous load times for those that don&#8217;t require that data to be queried. In the file \/[admin directory]\/includes\/modules\/dashboard_widgets\/RecentOrdersDashboardWidget.php, near the top is the following line:<\/p>\n<pre lang=\"php\">$includeAttributesInProductDetailRows = true;<\/pre>\n<p>Switching that from &#8220;true&#8221; to &#8220;false&#8221; will disable the queries and restore the previous load time.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>While working on a recent Zen Cart upgrade, we ran into an issue where the admin dashboard went from loading nearly instantaneously to taking at least 5 seconds to load in Zen Cart 1.5.7. The page loading would pause when the &#8220;New orders&#8221; section was next to be shown, so that seemed to be the &hellip; <a href=\"https:\/\/www.whitefirdesign.com\/blog\/2021\/03\/23\/dealing-with-slow-loading-of-zen-cart-admin-dashboard-in-zen-cart-1-5-7\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Dealing With Slow Loading of Zen Cart Admin Dashboard in Zen Cart 1.5.7&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[220],"tags":[],"class_list":["post-4548","post","type-post","status-publish","format-standard","hentry","category-zen-cart-issues"],"_links":{"self":[{"href":"https:\/\/www.whitefirdesign.com\/blog\/wp-json\/wp\/v2\/posts\/4548","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.whitefirdesign.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.whitefirdesign.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.whitefirdesign.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.whitefirdesign.com\/blog\/wp-json\/wp\/v2\/comments?post=4548"}],"version-history":[{"count":5,"href":"https:\/\/www.whitefirdesign.com\/blog\/wp-json\/wp\/v2\/posts\/4548\/revisions"}],"predecessor-version":[{"id":4862,"href":"https:\/\/www.whitefirdesign.com\/blog\/wp-json\/wp\/v2\/posts\/4548\/revisions\/4862"}],"wp:attachment":[{"href":"https:\/\/www.whitefirdesign.com\/blog\/wp-json\/wp\/v2\/media?parent=4548"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.whitefirdesign.com\/blog\/wp-json\/wp\/v2\/categories?post=4548"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.whitefirdesign.com\/blog\/wp-json\/wp\/v2\/tags?post=4548"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}