• Resolved Aditya Agarwal

    (@adityamilyin)


    Hi,

    I have a WordPress website milyin.com running on Cloud Hosting (3 GB RAM, 4 COREs, 200 GB SSD). My hosting server and I are in the same country (decent geographical proximity).

    I have been relying on LiteSpeed for optimizing my site. Few months ago I started using Guest Optimization and Guest Mode settings (along with Crawler) to improve my GPSI scores.

    But, even after that, I am getting TTFB of 1 sec+ for logged out user (thanks to Guest Optimizations) and for logged in users average TTFB is 9 seconds.

    I recieve less than 500 views daily, so my server resources are more than ample to ensure 200ms TTFBs, but I am getting such high numbers.

    Report number: NVJCQYIT

    Report date:?09/18/2023 15:18:20

    The problem is SIGNIFICANTLY more severe for logged in users often having “Timed Out” errors when trying to access site.

    I am using no page builders, only 15 plugins total, and a quality theme from Themeisle. Please advice.

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Support qtwrk

    (@qtwrk)

    please try and check:

    what is the TTFB on login users, if LSCWP is disabled ?

    what is the TTFB on login users, if cache is miss? and if cache is hit ?

    what is the TTFB if you disable ESI and object cache ?

    Thread Starter Aditya Agarwal

    (@adityamilyin)

    So, you wanted TTFB data for various parameters.

    All the below data is measured on same device + same browser with WiFi (80-100 Mbps). I used Brave Browser with Chrome’s Lighthouse for testing (Device set to mobile)

    There you go for home page:

    • LoggedIn + Cache Miss + LSCWP Deactivated: 10,500 ms
    • LoggedIn + Cache Miss + LSCWP Active (ESI + Obj Cache Disabled): 11,500 ms
    • LoggedIn + Cache Hit,Private + LSCWP Active (ESI + Obj Cache Disabled): 10,400 ms
    • LoggedIn + Cache Miss+ LSCWP Active (ESI + Obj Cache Enabled): 12,180 ms
    • LoggedIn + Cache HIT, Private + LSCWP Active (ESI + Obj Cache Enabled): 13,610 ms

    For a blog post:

    • LoggedIn + Cache Miss + LSCWP Deactivated: 870 ms
    • LoggedIn + Cache Miss + LSCWP Active (ESI + Obj Cache Disabled): 760 ms
    • LoggedIn + Cache Hit,Private + LSCWP Active (ESI + Obj Cache Disabled): 920 ms
    • LoggedIn + Cache Miss + LSCWP Active (ESI + Obj Cache Enabled): 1,890 ms
    • LoggedIn + Cache HIT, Private+ LSCWP Active (ESI + Obj Cache Enabled ): 1700 ms

    Plugin Support qtwrk

    (@qtwrk)

    emm? if I read the number correctly and just to confirm I understood the time unit correctly:

    home page: no plugin is about 10 seconds , with plugin it’s about 10 – 13 seconds depends on setting

    post: no plugin about 0.8 seconds , with plugin it’s about 0.7 – 1.8 seconds ?

    Thread Starter Aditya Agarwal

    (@adityamilyin)

    Yes that is correct.

    The numbers were suprising. I tried putting my site to complete conflict test and then switched off all plugins and all themes (Standard WordPress 2022 theme). Even then 0.6 seconds of TTFB (for the blog posts). With other plugins and themes it reaches till 1, and with LSCWP it reaches 1.4+

    Hostinger Cloud Hosting support said 0.6s is “acceptable”, I don’t beliebe them. I was hoping my number would go down to less than 0.6 with LSCWP but they are getting worse in this particular area.

    Please advice.

    I am not much concerned about Home Page, because our site is not reliant on home page for conversions. But, I am very much concerned about the blogs. Please advice.

    Plugin Support qtwrk

    (@qtwrk)

    for the part cache miss , it will take pretty much same time as you without cache plugin , for that part I am not surprised

    so if your page loads in 10 seconds without plugin , it takes 10 seconds or little bit more , is normal

    what weirds me is the cache hit part

    just make sure we are talking about the same thing , by TTFB , we are talking about this , right ?

    Thread Starter Aditya Agarwal

    (@adityamilyin)

    Yes I suppose,

    Lighthouse refers to it as “Initial Server Response Time”, but I assume TTFB and Initial Server Response Times are same thing. As mentioned previously, this time varies a lot between consecutive runs, but I am pretty sure that the Initial Server Response TIme gets slightly worse when LSCWP is active on my current settings. I was hoping that the time would improve rather than worse

    Thread Starter Aditya Agarwal

    (@adityamilyin)

    Here’s a curious observation. I don’t know if it would help you or not, but I still thought you should have the complete picture.

    The impact of themes and plugins is negligible for me. I deactivated all plugins (except Wordfence, security you know) and switched to default WordPress theme.

    Even then my Initial Server Response Time was 0.62 sec. Activating LSCWP did improve it a bit (only LSCWP and WordFence active), but it still remained greater than 0.5s.

    So, I believe that plugins and themes have nothing to do with it, it is just some better config in LSCWP that can do the trick. I have contacted support and they said to run DB optimizations which I did and had temporary performance gains but even they were diminished within few mins.

    Plugin Support qtwrk

    (@qtwrk)

    please create a ticket by mail to support at litespeedtech.com with reference link to this topic , we will investigate further.

    • This reply was modified 1 year, 2 months ago by qtwrk.
    Thread Starter Aditya Agarwal

    (@adityamilyin)

    Hi,

    I would have created ticket, but as of now, I think I found the bottleneck.

    My hosting provider asked me to disable WordPress cron and use their Linux cron, that improved performance.

    Besides, you are right, ESI disabling slightly improves the TTFB (Still not enough)

    Another quick question, my hosting provides in-built object caching. At the same time I have enabled WPLSC’s Object Caching using Memcached. What is better? Should I keep both on, or choose one of them (recommend which one in case only 1 is needed)

    If this Object Caching sorts out, I think the performance gains would be enough to not need a ticket. Thanks

    Plugin Support qtwrk

    (@qtwrk)

    I don’t know what kind of “in-built” object cache that is , so I can’t say

    you need to test it out yourself on this

    but with my experience , object cache in wordpress is not that much improvement , I mean it does give certain help , but may not be as big as you expected , unless you can re-code all of your plugins/themes to properly and fully utilize the object cache features

    Thread Starter Aditya Agarwal

    (@adityamilyin)

    Thanks it worked.

    Your support was amazing, much appreciated.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘TTFB 9 SEC+ for Logged in Users’ is closed to new replies.