0
PaaPsik
6y

Best way to troubleshoot a long ttfb on a wp woocommerce site? Yes I know wp and woo == boo. Still, a friend of mine has a shop and needs some help with it. Shared hosting, 6-7sec load for homepage, 4-5secs for product page

Comments
  • 0
    Upload a small text file and then check TTFB with that one. If that also sucks, then the WP installation isn't the issue, but probably too much load on the shared server.

    Edit: a text file that you can download/watch directly in the browser with no WP interfering, I mean.
  • 0
    @Charon92 a long ttfb that I mentioned in the beginning
  • 0
    @Fast-Nop checked with a text file on the index directory, the ttfb was 4.6seconds and then it redirected to a 404. loading the image directly however takes 56ms.. :/
  • 0
    @pionell In that case, the hoster is overloading the shared servers to make more money. Either go for VSP or even dedicated, or look for another hoster where shared isn't the same as shit.

    I'm on shared hosting, too, and the initial HTML is delivered after 400 ms (static pages).

    Edit: but the fast image time doesn't fit in that picture. No idea why a text file is slow and an image fast?!
  • 1
    @Fast-Nop text file probably redirected to 404 because of htaccess preventing people from reading plaintext files
  • 0
    @pionell But why is the 404 so slow? You could check out what htaccess does, maybe it redirects that to a WP page, too.

    With the image, does that come from the host itself or is it via a reverse Nginx proxy setup? Take a look at the http headers. Plus, upload a new image that has never been accessed before and check that time, too via https://httpstatus.io/ .

    If that's still reasonably fast, then it's either a fucked up WP installation, or the instance doesn't get enough computing time because there are hundreds of other domains also running heavy stuff. Check with this one here https://viewdns.info/reverseip/ and take a look what else going on there.
Add Comment