Hello there,
Firstly, I love MODx! However... I was wondering if I could get some answers (or I guess give some affirmation) about some speed issues that I site I have built is experiencing - Info:
MODx Revolution 2.0.6-pl2 (traditional) hosted on a Fasthosts Shared Server
Linux Apache 2.2.3
PHP 5.2.14
MySQL 5.1.50
No tables over 1mb, modx_session is close at 913kb
I’m using firefox 3.6.15 but the issue does seem to spread across all browsers.
The issue is that the site tends to hang for a varied amount of time before rendering a page (all pages). As in there’s a white screen with the loading icon going for between 2-12 seconds before any content seems to get through. This site is fairly complex using jQuery and ajax calls (although the script is minified to 27kb) so this was initially my concern, however once the whitescreen is passed, the site performs fast, and the hang tends to be before the javascript even has a chance to go. I’ve optimised the site with YSlow as reference and it’s now graded A (or sometimes B depending on how it interprets the google scripts :\) . I’ve done a little research on the forums to try and find some info and found a script you guys suggested for testing PHP/MySQL speeds with pretty varied results:
<!--MySQL: 0.0000 s, 0 request(s), PHP: 9.1417 s, total: 9.1417 s, document retrieved from cache. -->
<!--MySQL: 0.0000 s, 0 request(s), PHP: 1.3323 s, total: 1.3323 s, document retrieved from cache. -->
<!--MySQL: 0.0000 s, 0 request(s), PHP: 4.4313 s, total: 4.4313 s, document retrieved from cache. -->
<!--MySQL: 0.0000 s, 0 request(s), PHP: 4.7466 s, total: 4.7466 s, document retrieved from cache. -->
The Net panel within FF shows the average load time is usually about 2-3 seconds more than the above results, which makes sense.
So really my question is what could be causing this, or is this time normal even? I don’t believe it is, I have another site running on the same MODx version and the PHP goes in less than a second every time. My suspicions are that on the shared server the varied CPU load is causing the scripts to have different load times, would this be the case? I’m just trying to really nail the issue before I 100% recommend upgrading their servers, as you can understand if it makes no difference they’re not going to be very happy.
On the backend, things also load very slow - one particular issue is when trying to clear the cache, the console hangs indefinitely, and the cache isn’t cleared, maybe a potential clue to the issue?
Thanks a lot for your time
Sam