WordPress very slow (slow server response)
-
I have a WordPress/Elementor site that is extremely slow. (20-30s for first-time page load if the server has been idle for > 20s or so) and 6-9s page load after that.
We have installed caching etc.
Our website has shared hosting and tons of plugins (for ecommerce, shopping carts, user registration and page permissions, etc).
So I’ve been doing a lot of troubleshooting to see where the problem lies, as apparently one of our biggest issues is “server response time”
So I made a copy of our website and ran it locally on my computer (Linux Mint 21) to take hosting and network out of the equation (and so I could play around with it without messing up our live site). I tried disabling plugins, changing themes, even blocking Javascript and images (because plugins create tons of excessive JS)
Yesterday I installed a fresh copy of WP 6.0.2 with no content, clean install, and using the TwentyTwenty theme. I have PHP 8.1 & MySql 8.0.
TTFB (load time) is still an issue! (obviously not as much as with a fully-loaded site, but still).
Firefox shows a little turtle in the Network console and announces “slow server response time” for the document request. Load times are in excess of 1.4s with 1.2s being the server just apparently sitting there, with first-load-after-idle being particularly bad (2-3s).
I have checked MySQL and the database queries are not the issue (I tested for any query lasting > 0.5s and none occurred).
The fact that it occurs locally with a vanilla installation means that nothing on the optimize page will fix the issue, as far as I can tell.
I swapped the TwentyTwenty theme for Astra and load times did improve somewhat, down to about 1s. This is much too high for a local installation with no network latency, no traffic, no content, no images, no plugins, etc.
Issue does not occur with static HTML pages, either on our live hosted site or locally. I also tested a plain phpinfo() PHP page and it also loaded fast. The issue is with WordPress.
So – how to fix?
- The topic ‘WordPress very slow (slow server response)’ is closed to new replies.