Jump to content

Long time to add to cart


tomaszek01
 Share

Recommended Posts

Hello,

I am struggling with the problem of very long time to add a product to the cart - sometimes 1 minute.

Entering any product (example - https://platformaizolacji.pl/elewacje-wentylowane/71-welna-skalna-petralana-petravent-wv.html) and clicking "Add to cart" - the script loads very long.

 

I noticed in the Chrome Console it is a question of jquery question and query related files: controller:

cart add: 1

Ajax: true

qty: 1

id_product: 71

token: 61d407c97c0c9771e2c1a4a8824d33ae

ipa: 1792

 

Nevertheless, that's the basic question after all.

 

I also see that sending the query itself takes a short time (about 0.3 ms), but the reply from the TTFB server is almost 40 seconds. And here's the problem.

 

Has anyone encountered such a case? I would like to add that in the past, when there were a bit less products and orders in the store, it was much faster.

Server - LiteSpeed.

PHP max for this version of Presta, i.e. 5.6

 

 

Thank you in advance.

976899547_Zrzutekranu2021-05-20o16_54_19.png.ff7d22aa915297a67cdc2f4b0a8b3fa1.png

1550409072_Zrzutekranu2021-05-20o16_54_50.png.c2ad76a900a53fe860e7d487e5384692.png

Share this post


Link to post
Share on other sites

Please enable profiling in config/defines.inc.php. That results in all the queries show at the bottom of each page with the time they take (at the right side; you may need to scroll).

If it is the query time that causes this problem this will tell you where to look.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More