Home › Forums › WoodMart support forum › Pajax error timeout
Pajax error timeout
- This topic has 28 replies, 2 voices, and was last updated 1 year, 2 months ago by Artem Temos.
-
AuthorPosts
-
October 20, 2023 at 4:51 pm #505791
AlexParticipantHello, when going onto complex shop pages without them being cached, the ajax loading fails and the page reloads very slowly.
I noticed a pajax timeout error, how could this be resolved?
All plugins disabled, set the theme to default and not child.
When child theme is selected it doesn’t do that at most categories, but some still seem heavy enough to cause that.
Links attached in the mods area.
October 20, 2023 at 4:55 pm #505792
Artem TemosKeymasterHello,
Please, disable all plugins that are not related to our theme and provide us with your admin access. We will log in and check what is wrong there. You can leave only the following plugins that are required for our theme:
WoodMart core
WooCommerce
Elementor/WPBakery page builderThank you in advance
October 20, 2023 at 5:00 pm #505794
AlexParticipantYes that has been done
October 20, 2023 at 5:01 pm #505795
AlexParticipantHere is access:
October 20, 2023 at 5:20 pm #505800
Artem TemosKeymasterDisable the cache as well, please.
October 20, 2023 at 5:23 pm #505801
AlexParticipantNo cache is present, isn’t there? First link should have been the staging and not the “live” version (attached url)
October 20, 2023 at 5:25 pm #505802
Artem TemosKeymasterWe don’t see the timeout error there now. It loads in 1-2 seconds https://gyazo.com/2d005415ba3c4b9222d0d4fe9116f5a1
October 20, 2023 at 5:31 pm #505803
AlexParticipantTry clicking from /racewear to /racewear/race-boots
Some times it refreshes, other not.
Refreshed on my end, it is all a matter of if it will take more or less than 5 seconds.
Not sure what does the most delay, now if I enabled the plugins, this will be reloaded every time, even if I switch to the child theme where some custom code has been applied.
October 20, 2023 at 5:35 pm #505804
Artem TemosKeymasterIf you want, we can give you a snippet to increase the timeout but it is not recommended. You need to check why the response time is so high. It shouldn’t be more than 5 seconds.
October 20, 2023 at 5:48 pm #505806
AlexParticipantThat would help as a temporary solution, 10sec would not hurt would it?
Others things in mind from vanilla perspective:
1) Images must be part of the issue, there are some large ones which might be causing some of the delay, not sure how much however.
2) I wonder what are the recommended Woo image sizes/thumbnails for the shop page
3) Is Woodmart doing any processes on first time a specific shop page is loaded? It seems the next reloads are faster. Swatches? Transients?
4) If there is anything else you might have noticed I am full of ears.Thanks for the quick responses.
October 23, 2023 at 9:17 am #506177
Artem TemosKeymasterHello,
You can add the following code to the functions.php file in your child theme to increase it
add_filter( 'woodmart_pjax_timeout', function(){ return 10000; } );
1. & 2. Images size doesn’t affect the server response time at all.
3. Try to compare this with the default theme and see if there is any difference.
Kind Regards
October 26, 2023 at 1:57 pm #507491
AlexParticipantThanks for the snippet, that could kinda fix the issue since the refresh load time takes 15 seconds compared to the extra 5 seconds with ajax.
However this is weird. Seems like the complexity and the number of the variable products might be causing huge delays since less dense and simple product categories load instantly, how could this issue be mitigated?
October 26, 2023 at 2:49 pm #507530
Artem TemosKeymasterHello,
Could you please check how it works with some default WordPress themes like TwentyTwenty or WooCommerce Storefront to understand is it our theme issue or not?
Regards
October 26, 2023 at 5:17 pm #507593
AlexParticipantIt did load faster with the default storefront theme. But it has much less stuff. Perhaps it is the server that is the issue (it is a vps with more than enough resources).
I am unsure of how to proceed with this, could you take a look and let me know of what makes it load that long?
Seems it is a bit of everything to be honest.
October 27, 2023 at 9:19 am #507737
Artem TemosKeymasterCan we switch between themes and disable plugins on your website to test the response time?
October 28, 2023 at 3:49 pm #508121
AlexParticipantFeel free to do so, most plugins other than a checkout autocomplete one are disabled.
Regarding the theme, there are some modifications made in the child theme but they do not contribute to more of a second of delay.
Please check pages with heavy variable products like the one attached.
Thanks a lot!
October 30, 2023 at 10:38 am #508393
Artem TemosKeymasterPlease, send us your FTP access as well.
October 30, 2023 at 12:09 pm #508437
AlexParticipantFTP access attached
November 1, 2023 at 10:44 am #508980
Artem TemosKeymasterHello,
We have investigated this on your website and found no critical issues. Note that when transients (cache) are expired or removed it takes more time to generate the product grid. It is a bit longer than the default theme because you have 48 products per page. Try to reduce this number to 12 or 24 products and test how it works.
Kind Regards
November 1, 2023 at 12:49 pm #509039
AlexParticipantHello Artem, thanks a lot for investigating.
Seems like the complexity and number of variable products is too much, for example some pages have variable products only, each of which have 60 variants x 48, that is a lot. I am however, unsure of what is being loaded from these, but, these pages are the slowest.
My question is since there are more than enough resources from the vps server to handle 48 products per grid (6 cpu cores, 16gb ram) and max utilization is not reached, what is bottle necking the loading of them? Shouldn’t these resources suffice to handle 48 products per grid in decent time?
November 1, 2023 at 3:51 pm #509101
Artem TemosKeymasterHello,
PHP utilizes only one CPU core so it doesn’t matter how many cores you have. Anyway, it will take more time than usual so we recommend you either disable swatches on the grid or reduce the number of products per page.
Kind Regards
November 1, 2023 at 6:48 pm #509161
AlexParticipantI see, so upgrading the server would not do much.
Disabling swatches is not an option since we really like this feature, reducing the number of products per page is an option, but even with 24 products vs 48, the performance isn’t great, though much better than with 48.
Anything else you would suggest for our case?
November 2, 2023 at 11:32 am #509292
Artem TemosKeymasterHello,
We don’t know what else to suggest you to in this case. It is not something related to the theme. Even with the default theme with an increased number of products per page, it takes longer than it should.
Kind Regards
November 2, 2023 at 1:59 pm #509339
AlexParticipantHello Artem,
If turning on and off swatches makes the difference in loading time, perhaps something could be optimized there? Perhaps transient cache preloading?
November 3, 2023 at 10:46 am #509557
Artem TemosKeymasterHello,
Yes, but swatches have cache already. But this cache is cleared when you do some changes in your products. There are no other ways to improve this part.
Kind Regards
November 3, 2023 at 4:25 pm #509700
AlexParticipantI see,
Then upgrade to a server with higher single core clock speed could be a solution.
November 6, 2023 at 10:46 am #510110
Artem TemosKeymasterWe recommend you also pay some attention to your database performance. It may affect the response time also. Unfortunately, we can’t advise you on its configuration because it is out of the theme scope.
Kind Regards
November 6, 2023 at 2:00 pm #510186
AlexParticipantSounds good, thank you for all the info.
November 6, 2023 at 3:11 pm #510208
Artem TemosKeymasterYou are always welcome. Feel free to contact us if you have any further questions.
-
AuthorPosts
The topic ‘Pajax error timeout’ is closed to new replies.
- You must be logged in to create new topics. Login / Register