Seems like the front end of the site is abnormally slow - even compared to other modx sites I have hosted on the same server, I was wondering if anyone had a tuning faq/pointers, gotchas that I can look into to try and boost the front end performance...
I grabbed some page load times [with a little code snip from another thread}
MySQL: 0.0006 s, 2 request(s), PHP: 4.2241 s, total: 4.2247 s, document retrieved from database.
MySQL: 0.0002 s, 2 request(s), PHP: 2.3721 s, total: 2.3723 s, document retrieved from cache.
MySQL: 0.0002 s, 2 request(s), PHP: 4.3044 s, total: 4.3046 s, document retrieved from database.
MySQL: 0.0002 s, 2 request(s), PHP: 2.4450 s, total: 2.4452 s, document retrieved from cache.
MySQL: 0.0002 s, 2 request(s), PHP: 4.1951 s, total: 4.1953 s, document retrieved from database.
MySQL: 0.0002 s, 2 request(s), PHP: 2.7613 s, total: 2.7615 s, document retrieved from cache.
[homepage]
MySQL: 0.0001 s, 1 request(s), PHP: 7.0951 s, total: 7.0952 s, document retrieved from database.
MySQL: 0.0001 s, 1 request(s), PHP: 3.4364 s, total: 3.4365 s, document retrieved from cache.
You can see the cache load times are about half of what is loaded from the database [as expected] & the mysql activity is trivial.
the site is in development right now, I’ve combined all the css/js etc. run them through gzip via htaccess all that’s missing is CDN however - this is all looking like php running time [I think]
I tried ’optimizing’ the database - nada - I don’t see anything ’off’ in the modx error logs - a little stumped right now.. any thoughts?
Server = Centos media temple DV3
MODx Revolution 2.0.8-pl (traditional)
MySQL 5.0.22
PHP 5.2.5
What else can I look at?
Oh there is one thing... I’m using getResources a lot [A LOT] there are at least 6 instances of it on the home page [all called cached] & I’m also using the [[If]] add on a fair amount probably 3x in the main template.... are there any known performance issues with either of these?
-thanks
-sean