Hi guys,
I have 1 page that takes a ridiculous amount of time to load and from my debugging log it appears to be the simple commerce module. At the moment it’s anywhere from 40 seconds to 90 seconds to load the page. Seems to be about 70 at the moment.
My template debugging log and sql log is attached to this post and you will be able to see the simple commerce module tags looping over and over.
I’ve stripped the template down from what it once was the but the large delay is still present:
{exp:weblog:entries weblog="shopping_categories" disable="categories|member_data|pagination|trackbacks" sort="asc" orderby="date"}
<h3>{title}</h3>
<p>{reverse_related_entries sort="desc" orderby="title"} </p>
<p>{exp:simple_commerce:purchase entry_id="{entry_id}" success="/" cancel="/" country_code="NZ" currency="NZD"}</p>
<p><a href="http://{title_permalink=shopping/product}"><strong>{item_name}</strong></a></p>
<p>{/exp:simple_commerce:purchase} <br />
<br />
{/reverse_related_entries}</p>
<p>{/exp:weblog:entries}If I remove the simple commerce tags the page loads in 0.8 seconds like so:
{exp:weblog:entries weblog="shopping_categories" disable="categories|member_data|pagination|trackbacks" sort="asc" orderby="date"}
<h3>{title}</h3>
<p>{reverse_related_entries sort="desc" orderby="title"} <br />
<br />
{/reverse_related_entries}</p>
<p>{/exp:weblog:entries}