• Resolved Jacob Hill

    (@tekfused)


    Hello,

    I am running LSCache 3.0.9 (Report number TOMDWURY), and have disabled the the Cache WP-Admin option. This works fine for users with the administrator role, but when the role is a contributor or another non-admin role, wp-admin is getting cached.

    Let me know if you need anything else from me.

    Jake

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter Jacob Hill

    (@tekfused)

    Ok, I actually just figured this out. I changed the role of the user from a subscriber to a contributor, and noticed that when I visited wp-admin, it started caching.

    However, once I cleared the cache using my admin user, the contributor user worked correctly in wp-admin, and was not caching the back end.

    I don’t believe clearing the entire cache was necessary after a role change in 2.x of the plugin. Something to look into. πŸ™‚

    Thanks!

    Jake

    Thread Starter Jacob Hill

    (@tekfused)

    Well… I thought that fixed it, but it did not! I’m still encountering caching behavior on the back end for non-administrators. I don’t know if this is 100% true, but I noticed the caching behavior on custom post types. The wp-admin dashboard does not cache at all.

    Help!

    • This reply was modified 5 years, 9 months ago by Jacob Hill.
    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    As far as I know , the plugin doesn’t cache wp-admin , and there is no option to enable cache on wp-admin except force cache URI.

    You can simply check the HTTP response header, any page from backend should show “x-litespeed-cache-control: no-cache”

    Best regards,

    Thread Starter Jacob Hill

    (@tekfused)

    @qtwrk It is definitely caching for non admin users. See the following screenshot: https://drive.google.com/file/d/1S2XjhRI8u1RLPJ014vxCCAoxaipSSipm/view?usp=sharing

    Using the “contributor” user, it initially loads the CPT all posts page correctly, but then subsequent page loads serve a cached page. Even when a post is created in the CPT, it loads the cached page. I have to clear the cache using my admin account for the user to see the new post.

    I have also heard from some users that they are seeing other people’s names in the wp-admin bar on the front end. I think that is related to this issue (I do have ESI enabled for the admin bar).

    Let me know if you need anything.

    Jake

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Could you please go to admin area , left-side bar —> LiteSpeed Cache —> Toolbox —> [6] Debug Settings

    in this page:

    set Debug Log to Admin IP Only

    add your IP into Admin IPs (you will see your IP below.)

    set Debug Level to Advanced

    save changes.

    Now go to [7] Log View, click on admin-bar LiteSpeed Cache —> Purge All

    then click button [D] Clear Log , keep this window open, don’t close it nor navigate away from it.

    Now ,open a new window, access your the page with contributor where you see hit in your screenshot.

    once page is loaded , go back to Log View window and refresh this page, you should see the debug log is showing up.

    Then please copy all the text , paste it into https://paste.ubuntu.com/

    then post the link it generated for you.

    Best regards,

    Thread Starter Jacob Hill

    (@tekfused)

    Sure, here you go: https://paste.ubuntu.com/p/xTGjhXSpnJ/

    I removed the base site URL, but other than that, you should have what you need.

    I cleared the cache, cleared the debug log, then visited the articles CPT with my contributor role, refreshed the page to get the cached result, refreshed the debug log page with my admin user to copy and paste the text.

    Thank you for the fast response!

    Jake

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    05/14/20 21:32:36.272 [35.230.182.178:64766 1 3vk] [Router] get_uid: 101 => LiteSpeed\Debug2::debug()@354 => LiteSpeed\Router::get_uid()@232 => LiteSpeed\Router::get_role()@251 => LiteSpeed\Control->in_cache_exc_roles()@95 => LiteSpeed\Control->_setting_cacheable()@773
    05/14/20 21:32:36.272 [35.230.182.178:64766 1 3vk] [Router] get_role: contributor
    05/14/20 21:32:36.273 [35.230.182.178:64766 1 3vk] [Vary] show_admin_bar_front: true
    05/14/20 21:32:36.273 [35.230.182.178:64766 1 3vk] [Vary] admin bar : true
    05/14/20 21:32:36.273 [35.230.182.178:64766 1 3vk] [Vary] no custimzed vary
    05/14/20 21:32:36.273 [35.230.182.178:64766 1 3vk] πŸ’° X-LiteSpeed-Cache-Control: public,max-age=604800
    05/14/20 21:32:36.273 [35.230.182.178:64766 1 3vk] πŸ’° X-LiteSpeed-Tag: 130_HTTP.200,130_author,130_URL.aa5a314bd047b6d9de54586a77a4a8ce,130_PT.tf-articles,130_

    seems a bug , need to check with dev.

    meanwhile , if you add no-cache URI /wp-admin/edit.php should force it no-cache

    Best regards,

    Thread Starter Jacob Hill

    (@tekfused)

    Thank you, that is a good work around for now.

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    I have managed to reproduce the issue, and reported to dev for further check.

    Best regards,

    Thread Starter Jacob Hill

    (@tekfused)

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Yes , I was about to reply you this info πŸ™‚

    Best regards,

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Cache WP-Admin [Off] Doesn’t Work for non-Administrators’ is closed to new replies.