I have not found anything in the documentation or the forum but I was wondering if there was a post or guide that has some tips on optimizing a site so that it will load very quickly on the front end.
One one site I created last year, the site loads very slowly. It only has some basic optimized images and text so there is no reason it should load slowly (unless the database is loading slowly which could be happening). As a webmaster I always keep my images optimized and my loaded files light so the page loads quickly.
Under System>System Settings I notice database cache and other settings. Things like: Should I enable cache? Expiration Time? Database time? etc. Perhaps some other tips that would help make my sites load faster. Just wondering if there was already a tutorial on optimizing my site so it loads quickly for my visitors.
-
MODX Staff
- 10,725 Posts
The first question is, are you caching everything on your pages that you can? Second, what version are you using (you posted in the 2.0 thread)?
The site that is very slow is located here:
http://www.mycaringconnection.com/ and the MODx version is: 1.0.5 (yeah I know it's older, but it used to load fast).
I do have friendly URLs enabled. There was a lot of: modx_manager_log data that I emptied in the database just in case. Now that I look, this version does not have Cache setting in: tools>configuration. I was looking in another (new) install when I saw those settings.
You may not have a global cache setting, but each page can be marked as cacheable or not and each snippet can be called cached or uncached.
What opengeek is suggesting is to mark as many pages as you can as cached. Then call any snippets that will return the same result each time as cached and the rest uncached.
------------------------------------------------------------------------------------------
PLEASE, PLEASE specify the version of MODX you are using.
MODX info for everyone:
http://bobsguides.com/modx.html
OK. I checked each page and all have Cacheable checked. The only snipplet I have is eForm and that is set to display on the contact page.
Your site loads very fast for me.
------------------------------------------------------------------------------------------
PLEASE, PLEASE specify the version of MODX you are using.
MODX info for everyone:
http://bobsguides.com/modx.html
OK, then it must be me. I have a very fast computer (Quad Core, 6 MB RAM) and very fast internet (Road Runner Cable right now being clocked at: 15.9 Mbps download) so I didn't think it was me. I also tested Internet Explorer plus Firefox, and both load slowly for me. I suppose maybe its an extension or something in my browsers.
I have tested the website. Load very slow on Firefox and Internet Explorer, and Fast on Chrome. Try to disable chunk by chunk and see who is causing the problem, probably is the javascript.
Your images need optimising too, your slideshow images weigh in at around 650kb each. That's 3.25Mb to load all 5 slides!