Hello everyone! To begin with, I am new to MODX. Yesterday I tried it and found that page loading is too slow - up to 20 sec.
My environment:
Virtual hosting;
MODX Revolution 2.3.1-pl (traditional);
ExtJS 3.4.1;
Smarty 3.0.4;
mysql 5.5.32-log;
PHP Version 5.2.17;
Server API CGI;
I added 1 thing - Quip, the latest version;
All initial MODX settings are the same;
Caching is on;
In developer tools in Chrome I can see that all external files (js, css, pictures and so on) are taken from the cache and around 97% of total time is waiting for the response from the server.
An example of special tags (like ^t^) output:
Query time: 0.0650 s (48 Queries) // Parse time: 13.5103 s // Total time: 13.5753 s // Source: database
Caching or not snippets (with "!") didn`t seem to be the cause - in both cases pages are very slow.
I tried to load without snippets - same story, too long. This time just 3-4 sec to load around 20 KB of data instead of 10-15 sec with added snippets. Backend is slow too.
MODX error log:
[2014-07-28 12:18:27] (ERROR @ /connectors/lang.js.php) Could not cache system settings.
[2014-07-28 12:18:27] (ERROR @ /manager/min/index.php) Could not cache system settings.
[2014-07-28 12:18:27] (ERROR @ /manager/min/index.php) Could not cache system settings.
[2014-07-28 12:18:27] (ERROR @ /manager/min/index.php) Could not cache system settings.
[2014-07-28 12:18:28] (ERROR @ /manager/min/index.php) Could not cache context settings for mgr.
[2014-07-28 12:18:28] (ERROR @ /manager/min/index.php) Could not cache context settings for mgr.
[2014-07-28 12:18:28] (ERROR @ /manager/min/index.php) Could not cache context settings for mgr.
[2014-07-28 12:18:28] (ERROR @ /manager/min/index.php) Could not cache context settings for mgr.
[2014-07-28 12:18:36] (ERROR @ /index.php) Could not cache system settings.
[2014-07-28 12:18:36] (ERROR @ /index.php) Could not cache system settings.
[2014-07-28 12:18:36] (ERROR @ /index.php) Could not cache context settings for mgr.
[2014-07-28 12:18:37] (ERROR @ /index.php) Error caching lexicon topic lexicon/en/core/default
[2014-07-28 12:18:37] (ERROR @ /index.php) Error caching lexicon topic lexicon/en/core/default
[2014-07-28 12:18:37] (ERROR @ /index.php) Error caching lexicon topic lexicon/ru/core/default
[2014-07-28 12:18:37] (ERROR @ /index.php) Error caching lexicon topic lexicon/ru/core/default
[2014-07-28 12:18:37] (ERROR @ /index.php) Error caching action map mgr/actions
[2014-07-28 12:18:40] (ERROR @ /index.php) Could not cache system settings.
[2014-07-28 12:18:42] (ERROR @ /index.php) Could not cache context settings for mgr.
[2014-07-28 12:18:42] (ERROR @ /index.php) Error caching lexicon topic lexicon/en/core/default
[2014-07-28 12:18:43] (ERROR @ /index.php) Error caching lexicon topic lexicon/ru/core/default
[2014-07-28 12:18:43] (ERROR @ /index.php) Error caching lexicon topic lexicon/en/core/default
[2014-07-28 12:18:43] (ERROR @ /index.php) Error caching lexicon topic lexicon/ru/core/default
[2014-07-28 12:18:43] (ERROR @ /index.php) Error caching action map mgr/actions
So, what can I do to fix it? Why is PHP parse time so high?
PS Some users in other topics mentioned Gravatar as a possible cause of slow work. I switched it off and it didn`t helped - same awful results.
And one weird thing - reloading the same page with the same content, snippets etc. every time I get different number of queries - from 40 to 58.
[ed. note: warior30 last edited this post 9 years, 9 months ago.]