Home Forums WoodMart support forum Theme use too many Ajax call

Theme use too many Ajax call

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #433130

    Cioppi88
    Participant

    Hi guys,
    I’m monitoring the performance of the website and I notice that your frameork use too many ajax request every time I set new option using the settings panel.
    My server CPU goes every time over 100%. I just scaling my server in order to pass from 2 Core to 3, but I think it’s not a solution. the problem is related to the theme.

    Do you have similar ticket yet?
    Can you please check on my backend what happens when try to chenge some option?
    You can see that the backend require too time to save the settings.

    #433259

    Artem Temos
    Keymaster

    Hello,

    Could you please clarify what AJAX requests you are writing about? There are a lot of different requests that may occur on your website in different cases including adding to cart, wishlist, header builder management, and so on.
    Send us some screenshots or logs about requests that are sent frequently.

    Kind Regards

    #433293

    Cioppi88
    Participant

    This is the log of today

    93.37.177.83 – – [05/Jan/2023:09:32:56 +0000] “GET /wp-admin/admin.php?page=xts_theme_settings&tab=general_typography_section HTTP/1.0” 200 822859 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36”
    93.37.177.83 – – [05/Jan/2023:09:33:52 +0000] “GET /robots.txt?1672911234310 HTTP/1.1” 200 360 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36”
    93.37.177.83 – – [05/Jan/2023:09:33:50 +0000] “POST /wp-json/wpml/tm/v1/ate/jobs/sync HTTP/1.0” 200 1118 “https://wordpress-885114-3068548.cloudwaysapps.com/wp-admin/admin.php?page=xts_theme_settings&tab=general_typography_section” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36”
    93.37.177.83 – – [05/Jan/2023:09:33:56 +0000] “POST /wp-admin/admin-ajax.php HTTP/1.0” 200 1183 “https://wordpress-885114-3068548.cloudwaysapps.com/wp-admin/admin.php?page=xts_theme_settings&tab=general_typography_section” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36”
    104.238.170.64 – – [05/Jan/2023:09:34:22 +0000] “POST /wp-load.php?f7f564=41012 HTTP/1.0” 200 3782 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36”
    93.37.177.83 – – [05/Jan/2023:09:34:27 +0000] “POST /wp-admin/admin-ajax.php HTTP/1.0” 200 1172 “https://wordpress-885114-3068548.cloudwaysapps.com/wp-admin/admin.php?page=jet-engine-query&query_action=edit&id=4” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36”
    93.37.177.83 – – [05/Jan/2023:09:34:29 +0000] “POST /wp-admin/admin-ajax.php HTTP/1.0” 200 1172 “https://wordpress-885114-3068548.cloudwaysapps.com/wp-admin/admin.php?page=xts_theme_settings&tab=general_typography_section” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36”
    127.0.0.1 – – [05/Jan/2023:09:35:30 +0000] “POST /wp-cron.php?doing_wp_cron=1672911330.8282489776611328125000 HTTP/1.0” 200 259 “https://wordpress-885114-3068548.cloudwaysapps.com/wp-cron.php?doing_wp_cron=1672911330.8282489776611328125000” “WordPress/6.1.1; https://wordpress-885114-3068548.cloudwaysapps.com”
    93.37.177.83 – – [05/Jan/2023:09:35:27 +0000] “POST /wp-admin/admin-ajax.php HTTP/1.0” 200 1172 “https://wordpress-885114-3068548.cloudwaysapps.com/wp-admin/admin.php?page=jet-engine-query&query_action=edit&id=4” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36”
    93.37.177.83 – – [05/Jan/2023:09:35:29 +0000] “POST /wp-admin/admin-ajax.php HTTP/1.0” 200 1172 “https://wordpress-885114-3068548.cloudwaysapps.com/wp-admin/admin.php?page=xts_theme_settings&tab=general_typography_section” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36”
    127.0.0.1 – – [05/Jan/2023:09:36:05 +0000] “POST /wp-cron.php?doing_wp_cron=1672911365.3391120433807373046875 HTTP/1.0” 200 259 “https://wordpress-885114-3068548.cloudwaysapps.com/wp-cron.php?doing_wp_cron=1672911365.3391120433807373046875” “WordPress/6.1.1; https://wordpress-885114-3068548.cloudwaysapps.com”
    93.37.177.83 – – [05/Jan/2023:09:36:01 +0000] “POST /wp-admin/options.php HTTP/1.0” 302 1187 “https://wordpress-885114-3068548.cloudwaysapps.com/wp-admin/admin.php?page=xts_theme_settings&tab=general_typography_section” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36”
    127.0.0.1 – – [05/Jan/2023:09:36:09 +0000] “POST /wp-cron.php?doing_wp_cron=1672911369.5186610221862792968750 HTTP/1.0” 200 259 “https://wordpress-885114-3068548.cloudwaysapps.com/wp-cron.php?doing_wp_cron=1672911369.5186610221862792968750” “WordPress/6.1.1; https://wordpress-885114-3068548.cloudwaysapps.com”
    93.37.177.83 – – [05/Jan/2023:09:36:06 +0000] “GET /wp-admin/admin.php?page=xts_theme_settings&tab=general_typography_section&settings-updated=true HTTP/1.0” 200 696478 “https://wordpress-885114-3068548.cloudwaysapps.com/wp-admin/admin.php?page=xts_theme_settings&tab=general_typography_section” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36”

    #433312

    Artem Temos
    Keymaster

    Hello,

    This log contains information about 5 AJAX requests but it doesn’t mean that these requests are sent by WoodMart. Note that they were triggered on other pages as well, not on the Theme Settings pages only.

    Kind Regards

    #433323

    Cioppi88
    Participant

    Yes it’s not related only to theme settings but the most request is from xts_theme_settings.
    What do you mean with ” but it doesn’t mean that these requests are sent by WoodMart”.
    The string is calling a Theme function.

    #433325

    Cioppi88
    Participant

    If you log in the backend and try to save option (such as tipography) you can see that the loading page is too slow.

    #433326

    Cioppi88
    Participant

    I enabled diagnostic mode, no plugin active only your theme! The ajax request are always to hight

    #433329

    Artem Temos
    Keymaster

    Hello,

    1. You see xts_theme_settings in your log because it logs all the time you visit our Theme Settings page.

    2. When you are on this page, all the AJAX requests called will be logged from this page and you may confuse that they are related to our theme.

    3. But they are not related to our theme even if they are called from this page. We tested this on your website and see only one request made by our theme when you visit Theme Settings. Other requests are not related to Woodmart. Here is a screenshot https://gyazo.com/cf9d80236f5105fa25956ea759c72f11

    4. Your dashboard is very slow anyway no matter which page we visit. So it has no relation to AJAX requests at all. https://gyazo.com/8f2996f62070007dd9ae1e568078fd07

    Kind Regards

    #433332

    Cioppi88
    Participant

    Your assistance sucks as always.
    You should learn more and more about customer care even if you could have the best product in the market.
    You can’t close a ticket asking it’s not our problem, maybe you can suggest other solution or investigate more deeply in order to understand which was the cause.

    Take a look to the screen in attached when I save option on theme. 6.38 seconds load only from admin.php?page=xts_theme_settings&settings-updated=true

    Attachments:
    You must be logged in to view attached files.
    #433336

    Artem Temos
    Keymaster

    We are very sorry for the disappointment. But it looks like we are talking about different things now. In your very first message as well as in the topic name you stated that our theme has too many AJAX calls. And we checked your logs as well as the admin dashboard but didn’t see anything related to the initial issue. We also provided you with all the screenshots.
    Anyway, we are still trying to help if you have any problems caused by WoodMart so let me know if I’m talking not about what you are asking for.

    Your last screenshot shows your server response time of 6 seconds, that is correct. But as we already showed in our previous reply the same response time is on all pages on your website. Not on the Theme Settings page only. Here is this screenshot https://gyazo.com/8f2996f62070007dd9ae1e568078fd07

    Again, your screenshot doesn’t mean that our theme sends some AJAX requests. It just shows the server response time when you visit the Theme Settings page in your example.

    Let me know if I’m wrong.

    Kind Regards

    #433347

    Cioppi88
    Participant

    Now the answer is quite different.
    Ok maybe is not an Ajax problem related but as you can see most of the request that drain time to load come from woodmart.

    Is there anything I can do or you can do in order to understand why the server is too slow?

    #433349

    Artem Temos
    Keymaster

    You are not fully interpreting the results from the network tab correctly. 6s server response is not influenced by any of the resources loaded afterward.
    As for the server response time, we recommend you test how it works with the default theme, also, try to disable all plugins temporarily. If it doesn’t help, you need to consult with your hosting provider.

Viewing 12 posts - 1 through 12 (of 12 total)