Hi. I’ve built my biggest site yet on Modx - currently 2000+ pages (will grow way beyond this).
The site is hosted on a shared server which is responsive. The old version of the site is still live and with it’s 2000+ pages is very responsive (approx: 1 - 1 1/2 second per page load). However, the new modx site takes approx 5-6 seconds per page load.
What factors might be at play here? and is there any way to boost the responsiveness?
I did have caching turned off by default - this is now turned on (and has been for the past 2 weeks of development).
Thanks for any pointers/help.
-
☆ A M B ☆
- 711 Posts
Have you tried turning of MODx stats, and reverse DNS lookups we had this running on a fairly large site and found the site to be running slow.
Aaron
> Have you tried turning of MODx stats
I don’t have this turned on. ( Log visits (stats) is off )
> reverse DNS lookups
I can’t see this option in the configuration panel. Where might I find that?
To clarify I have modx 0.9.6 installed.
Thanks.
-
MODX Staff
- 10,725 Posts
I can assure you it will be a plugin or snippet that is common to all the pages exhibiting the slowdown. Also, have you moved to keeping all plugins and snippets in external includes? This will help reduce the siteCache file size, which is likely quickly approaching 1Mb in size with 2000 documents + all the snippet and plugin source code.
Excellent - I will try this placing all snippet and plugin code in external files.
-
☆ A M B ☆
- 24,524 Posts
As Jason said, be careful how you use that "return" statement. Depending on the function you are "return"-ing, it can return a 1, since the function that is being called itself returns a value to indicate success or failure. I think the include() function does that, so if you have "return include(myfile.php)" it will include the file, then display a 1, since the include() function was successful, which can be very annoying to try to get rid of.
I’ve tinkered around with this - removing snippets (not using that many anyway) - there are no plugins being used on the frontend.
The only common snippet is WayFinder and removing this doesn’t really speed things along.
Is there a better way to debug this?