This just started happening with the latest updates.
My product pages went from under a couple of seconds, to 12-16 seconds. All spikes below are from Matrix calls.
I am at a loss on what to do as rebuilding the pages without using the matrix field is a major rework.
Any ideas?
* EDIT * It's a huge Matrix field. The odd thing is that this is coming from a EE 1.6.8 rebuild and it ran fast on that setup with the same data and more conditionals in the template. I figured it would run faster on EE2.
Here is the complete field:
* EDIT * Here is the template code:
{app_product_info}
{if hover_grid_options == "none"}
<div id="article-{row_count}" class="row">
{!-- ARE WE USING PLACED IMAGES --}
{if image}
{!-- EVERYTHING BUT THE BOTTOM SELECTED IMAGES NOW --}
{if image_location != "bottom"}
{!-- DOES THE USER WANT TO TRIGGER A GALLERY EFFECT --}
{if larger_image}
<a href="{larger_image}" class="align-{image_location}"><img class="larger align-{image_location}" src="{image}" /></a>
{if headline}
<h1{if image_location == "center"} style="margin-top: .5em;"{/if}>{headline}</h1>
{/if}
{copy}
{if:elseif video_link}
<a class="video_launch video iframe" href="http://www.youtube.com/embed/{video_link}" /><img src="{image}" class="align-{image_location} larger"></a>
{if headline}
<h1{if image_location == "center"} style="margin-top: .5em;"{/if}>{headline}</h1>
{/if}
{copy}
{if:else}
<img src="{image}" class="align-{image_location}">
{if headline}
<h1{if image_location == "center"} style="margin-top: .5em;"{/if}>{headline}</h1>
{/if}
{copy}
{/if}
{if:else}
{!-- DO THE BOTTOM IMAGES --}
{!-- DOES THE USER WANT TO TRIGGER A GALLERY EFFECT --}
{if larger_image}
{if headline}
<h1>{headline}</h1>
{/if}
{copy}
<p>
<a href="{larger_image}" class="align-{image_location}"><img class="larger align-{image_location}" src="{image}" /></a>
</p>
{if:elseif video_link}
{if headline}
<h1>{headline}</h1>
{/if}
{copy}
<p>
<a class="video_launch video iframe" href="http://www.youtube.com/embed/{video_link}" /><img src="{image}" class="align-{image_location} larger"></a>
</p>
{if:else}
{if headline}
<h1>{headline}</h1>
{/if}
{copy}
<p><img src="{image}" class="align-{image_location}"></p>
{/if}
{/if}
{if:else}
{if headline}
<h1>{headline}</h1>
{/if}
{copy}
{/if}
{!-- CHECK FOR A VIDEO TAG --}
{if video_link && video_text}
<!-- BLOCKQUOTE VIDEO -->
<blockquote class="video" name="{video_link}">
{video_text}
</blockquote>
{/if}
</div>
{!-- ADD A HR TO THE PLACES IN NEED --}
{if row_count != total_rows && image_location != "testimonial"}
<hr>
{/if}
{/if}
{/app_product_info}
I added the template code in hopes it might help. This is the template that was running fine in EE 1.6.8 but failing miserably in EE 2.7.2
Each field in the Matrix determines a different outcome for the layout/options.