Usergroup: Customer
Joined: Jan 19, 2007
Total Topics: 29
Total Posts: 125
Posted 11/12/07 - 09:28 AM:
#1
Hi,
My site, as you may remember is very slow to load due to the amount of categories listed on the page. Would using the Generate HTML option help at all? It is only the main page www.accommodation-uk.net which is critically slow at about 15 seconds to fully load - but even the sub categories are around 8 seconds. I welcome your suggestions.
Usergroup: Customer
Joined: Jan 19, 2007
Total Topics: 29
Total Posts: 125
Posted 11/12/07 - 11:14 AM:
#3
Hi Jill, that should have been www.accommodation-uk.net/wsn i am afraid I am in the process of swapping the scripts and since I posted I have swapped it back to the wsn folder as there's now something else I forgot to do!
Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile
Total Topics: 141
Total Posts: 369
Posted 11/12/07 - 06:21 PM:
#4
Hello Jez,
For shure Generate Html would help a lot.
But also you can try before generating html, to enable the cache system stating that generate cache for Guests and that A page cache will update on average every 1000 views, and will always update when more than 24 hours old.
Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 56
Total Posts: 5844
Posted 11/12/07 - 06:28 PM:
#5
Use the cache system at Admin -> Settings -> General. Plain HTML raises a lot of issues, I strongly recommend against using it to actually run a site (the only potential use is for distributing an offline copy, really).
I think the sheer amount of HTML in your category selector is affecting load times too. You might want to remove it from your wrapper template. Also your main page has more commented-out text than showing text I think, and all that hidden stuff slows processing. Like:
<!--IF 1><br />One of the most majestic county’s in England is Inverness-shire. Some of the England’s greatest battles were fought in the county, and Shakespeare’s Macbeth was also based on the various characters around town. With all of the accommodations that are available in the area, it comes as no surprise to many that there are also various places to stay. <br /> <br />Trying to locate the right place to stay while on holiday in the area is not difficult to do. There are places such as the West End Guest House, which is a holiday house that is preferred by those that visit the area. For those that may be looking for pet friendly and child friendly accommodation, a location such as the Craigerne House Hotel is another great location that many tourists will turn to for their holiday needs. <br /> <br />Inverness-Shire Fact: Inverness-shire is ranked as being the largest landmass in the Scotland area. <br /> <br />Editor’s Pick: The Columbia Hotel in Inverness-shire is close to many of the local shopping and tourist attractions. This hotel is well received by the tourists that stay there, as there are many special accommodations that the hotel gives to its customers, such as free continental breakfast.</IF-->
If you have your browser save the page as HTML, you can see that just the HTML -- even before the stylesheet, images, javascript and all that are called in -- is 213KB. A dialup modem user can never visit your site even if the script generated it instantly, because it takes them several minutes to download the page. You need to cut down your HTML. (Though mod gzip may help this a bit.)
Edited by Paul on 11/12/07 - 06:41 PM
_____________________
"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
Usergroup: Customer
Joined: Jan 19, 2007
Total Topics: 29
Total Posts: 125
Posted 11/13/07 - 01:37 AM:
#6
Hi paul,
That's interesting, I hadn't notoced that ALL of the category descriptions were shown on the main page code. How can I get rid of it but keep the description for the individual category pages?
Usergroup: Customer
Joined: Jan 19, 2007
Total Topics: 29
Total Posts: 125
Posted 11/13/07 - 01:38 AM:
#7
peumus wrote: Hello Jez,
For shure Generate Html would help a lot.
But also you can try before generating html, to enable the cache system stating that generate cache for Guests and that A page cache will update on average every 1000 views, and will always update when more than 24 hours old.
Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 56
Total Posts: 5844
Posted 11/13/07 - 11:54 PM:
#8
Jez wrote: How can I get rid of it but keep the description for the individual category pages?
Remove it from the main index template but not from the display links in category template. I don't see what the point of having something there that you've commented out is no matter where it is though. What good is having invisible text?
_____________________
"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
Usergroup: Customer
Joined: Jan 19, 2007
Total Topics: 29
Total Posts: 125
Posted 11/14/07 - 01:56 PM:
#9
Thanks. The caching works a treat and I have cleaned out some of the superflous stuff as well. The site now loads quite fast even without the caching
I have a new problem in as much as I have moved the site from a sub folder to the main directory and I am getting errors, see http://www.accommodation-uk.net/
I am also pretty sure that the .htaccess is not correct either as it still mentions the old folder - I attach.
I edited the config.php file to reflect the folder change. Any ideas please?
Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 56
Total Posts: 5844
Posted 11/14/07 - 05:42 PM:
#10
Check your file path to your attachments directory at Admin -> Settings -> System. It looks like you have have left off the trailing slash.
As for the .htaccess, go to Admin -> Settings -> SEO and resubmit the page to get it regenerated. If for some reason you're writing a manual .htaccess you'll have to change the rewritebase from /wsn/ to /.
Edited by Paul on 11/14/07 - 05:45 PM
_____________________
"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat