Support » Plugin: LiteSpeed Cache » How to skip page optimization for logged-in users

  • Resolved Gal Baras

    (@galbaras)


    Cache: caching for logged-in users turned off.

    Excludes: do not cache query string “nocache” + administrator role excluded.

    The plugins shows and uncached, but optimized pages when I’m logged in as an administrator and/or adding ?nocache to the page URL.

    After all caches are cleared, the page is re-optimized.

    Side note: the comments at the bottom seem to use different time zone (optimization uses GMT and caching (uncaching) uses my local time zone), although the time zone is not specified.

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

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

    (@qtwrk)

    Hi,

    https://www.litespeedtech.com/support/wiki/lib/exe/fetch.php/litespeed_wiki:cache:lscwp:lscwp-settings-tuning.png

    the one at bottom , Role excludes , I think this is what you are looking for.

    Best regards,

    Like I said, Administrator was already excluded, and the page was server “uncached”, but not unoptimized.

    It’s actually not clear what “exclude” means in this context, when the global setting to ignore users is set. When I check “Administrator”, does the plugin serve administrators pages that are excluded from caching or excluded from being ignored?

    Hi @galbaras, the Exclude Settings is just for excluding cache, if you wish to check a non-optimized version, please add LSCWP_CTRL=before_optm query string at the end of the URL.

    Why not just add an option to exclude optimization? Seems like an easy thing, given there’s already code for doing it when a query string is present.

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    I’m sorry if I misunderstood the question , but isn’t this option “Role Excludes” to exclude the certain role/user from page optimization ?

    like you can force admin or editor to view un-optimized page, while guest or normal user to view optimized page.

    There are 2 “role excludes” , one in tab 4 [Exclude] , which is “do not cache” , which means , not caching page, but optimizing the page.

    another one, I am talking about , is in tab 6 [Tuning] , which is “optimization exclude” , which means , caching the page, but not optimizing it.

    Best regards,

    Found it! A little confusing, but it works.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to skip page optimization for logged-in users’ is closed to new replies.