Hi all. I'm looking for some help in optimizing the Page load times on a commercial site we are developing.
I've searches the forums and haven't been able to find anything that addresses my concerns. I realize that the base server configuration has an effect on the speed of page generation. We are limited to using a shared server, so we have to work within those limits. I also realize that uncached snippet calls such as with getresources and wayfinder, which we are using (cached) on certain pages, can have a large impact on speed.
So, to establish a baseline, I measured the latency and download speeds for three cases using the same HTML:
- -static HTML file
- -flat HTML in contents field of new resource using empty template (no MODX calls)
- -HTML integrated into MODX using templates, TVs and Chunks. 1 snippet call to BabelLinks
These are the results:
| Latency(ms) Range | Latency(ms) Avg. | Download(ms) |
-----------------------------+-------------------+------------------+--------------+
Static Page | 70~230 | 80 | 170~220 |
Flat HTML in MODX Resource | 130~1600 | 360 | 170~220 |
Fully Implemented Page | 220~7000 | 460 | 170~220 |
I'm sure you can imagine the situation only worsens once we start adding further snippet calls.
Where should I be focusing my efforts to reduce the latency I am getting? PHP memory limit is currently set to 32MB. I can bump that up a bit. But are there other MODX or PHP settings that can help my situation?