Slow website after PHP upgrade

svarry

New member
Joined
Mar 25, 2022
Messages
2
Hi,

Hi, have two woocommerce website with litespeed in a VPS plan, during one php udate one of these website heavily slow down in frontend and backend, are days i wonder for find a solution but with insuccess, I hope someone who has more experience than me can help me.

The sites in question are: https://growledlamp.it (the one that has become slow, Google Pagespeed Desktop mode will be able to give you truer data on speed)
And
other version that still works fine https://growledlamp.fr

Thank you in advance.
Mauro
 
Woocommerce sites are normally a little memory hungry and you need to increase php memory limit. The default is 128M and is probably not enough.

Adding a .user.ini file to the web root with:

memory_limit = 256M

You need to increase the WordPress memory limit also in it's config file.

define(‘WP_MEMORY_LIMIT’, ‘256M’)

If 256M is not enough try 512M.
 
Hi,

Hi, have two woocommerce website with litespeed in a VPS plan, during one php udate one of these website heavily slow down in frontend and backend, are days i wonder for find a solution but with insuccess, I hope someone who has more experience than me can help me.

The sites in question are: https://growledlamp.it (the one that has become slow, Google Pagespeed Desktop mode will be able to give you truer data on speed)
And
other version that still works fine https://growledlamp.fr

Thank you in advance.
Mauro
Try to increase memory_limit to 1GB if needed.
 
Thanks for all info, i have increased memory but system still slow,

now i have found this RestAPI/CURL issue, but i ignore the origin of error:

The request to the REST API failed due to an error. Error: cURL error 28: Operation timed out after 10000 milliseconds with 9706 bytes received (http_request_failed)
 
maybe REST API IP was blocked by firewall or something else. Check access from console, try to ping it, check if cURL not blocked at your side.
 
i have found this RestAPI/CURL issue,

Check if you have both OS curl and CB curl installed
Code:
whereis curl
should look like this
curl: /usr/bin/curl /usr/share/man/man1/curl.1.gz
not
like
curl: /usr/bin/curl /usr/local/bin/curl /usr/share/man/man1/curl.1.gz (or similar)
 
Back
Top