• Resolved marcorroma

    (@marcorroma)


    Hi, I would like logged in users to see the cached homepage (page cache).
    It’s possible?
    If I enable “Cache Logged-in Users” nothing happens.

    Currently if they are logged in I see the .css and .js created by Litespeed cache plugin, but the page cache is not.

    I have a very heavy homepage and I would like to avoid slowing down loading and logged in users.

    Thank you.

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

    (@qtwrk)

    Hi,

    Please provide the report number

    you can get it in toolbox -> report -> click “send to LiteSpeed”

    and also please follow this guide to enable debug log , if the home page is not cached, the log will state the reason

    Best regards,

    Thread Starter marcorroma

    (@marcorroma)

    Hi, here is the Report number.
    I didn’t understand if I have to send you the report number that I see before clicking on “send report”, or immediately after.
    Anyway, here are the reports sent by me (with advanced debug log active)

    Report number: GUNQGSSV
    Report date: 03/29/2021 08:55:32

    Report number: PIJOINRT
    Report date: 03/29/2021 08:55:48

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    what is the response header you see on homepage with login user ?

    and if you are using OpenLiteSpeed, try restart it for once

    Best regards,

    Thread Starter marcorroma

    (@marcorroma)

    Hi, what do you mean by what do I see in the header on the homepage?
    I see the admin bar on top of the page.
    Both as an administrator and as an editor.

    I have now restarted Openlitespeed once. I visited the homepage as an administrator.

    Here is the report:
    Report number: MLVRUCEI
    Report date: 03/30/2021 09:15:47

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    you can follow this guide for how to check http response header, it will indicate the cache status

    Best regards,

    Thread Starter marcorroma

    (@marcorroma)

    the Page cache for logged in users is enabled in the Litespeed cache plugin settings. but if i view the page i don’t see the page in cache (CSS and js are Litespeed cache). I checked my homepage and in the headers I have “cache-control: no-cache, must-revalidate, max-age=0”. I would like to activate the Page cache for logged in users. Thanks

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    yes , but please follow the guide I provided , what I want to know is the value of x-litespeed-cache header , other headers doesn’t concern us

    Best regards,

    Thread Starter marcorroma

    (@marcorroma)

    This is it:
    x-litespeed-cache: miss

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    refresh it , you should see x-litespeed-cache: hit,private , this indicates the page is cached , privately to that user only.

    LSCWP will use private cache for login user

    Best regards,

    Thread Starter marcorroma

    (@marcorroma)

    no man. the Litespeed cache is always “miss” for logged in users. even if I update the same page 100 times.

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    okay , please try this

    1. disable cache plugin

    2. delete the cache dir , you can run command like rm -rf /usr/local/lsws/cachedata/* to wipe it

    3. re-enable cache plugin

    4. restart OLS

    5. then check again

    Best regards,

    Thread Starter marcorroma

    (@marcorroma)

    I’ve done everything.
    Folder successfully deleted, restarted and reactivated the plugin.
    I always “miss” and the page cache is not there for logged in users.
    I tried to refresh the page 5 times.

    Report number: MUXVJFNQ
    Report date: 03/30/2021 23:53:00

    • This reply was modified 3 years, 12 months ago by marcorroma.
    Plugin Support qtwrk

    (@qtwrk)

    then it’s more like a server-side issue instead of plugin side

    please create a ticket by mail to support at litespeedtech.com

    Thread Starter marcorroma

    (@marcorroma)

    Thanks

    Thread Starter marcorroma

    (@marcorroma)

    Hi, I found out what the problem was.
    It was a conflict with the PWA cache management (managed by the “PWA for WP” plugin).
    Thanks for your help

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Homepage in cache’ is closed to new replies.