SLOW FIRST PAGE SOLUTION!
So I have been struggling with an extremely slow load time on the first page. After trying other ideas and solutions in this thread, and having no joy, I decided to route out the issue by deconstructing the index bit by bit.
Turns out the cause of my 7-15 second loading time is actually the code that calls and displays the RSS feed for the Our Blog section under the carousel!
When I was modifying the template I removed the functionality of this column, but apparently left the part of the code that calls the RSS. I'm guessing that the reason for the slow load is that the server is trying to fetch the RSS feed data, or it is simply just badly coded.
So to fix the epic loading time just remove the code that fetches the RSS feed and displays it. To do this:
1. BACK UP!
2. Open to edit /YOUR_CAT/includes/templates/tableau/templates/tpl_index_default.php
3. Remove from just under <!-- end/about us --> (around line 180) through to <!-- end/our blog --> (around line 230)
4. If you like you can replace the code with the following to add a column in place of the one you removed. Customise as you like.
Code:
<div class="content--column">
<div class="content--header">
<span class="ico is-blog"></span>
<h3>Blog</h3>
<span class="content--intro">
</span>
</div>
<div class="content--body">
<!--span class="blogdate"><?php //echo date('D, j M Y', strtotime($item_date[0])); ?></span-->
<p class="content--text">Here is some text in place of the the blog that was slowing the whole site down!</p>
<a href="/index.php?main_page=page&id=15" class="button">Read More</a>
</div>
</div>
Note: Edit the red bits how you like.
Hope this helps anyone suffering from this issue. It is a shame the blog functionality doesn't work but I am sure it can be fixed.
Bookmarks