• Resolved DonCoryon

    (@doncoryon)


    Is there a way, or a hook, that I can set the cache for the subscriber role but have no cache for contributor and up?

    I believe there is a conflict with hummingbird cache for logged in users and smart crawl SEO.

    This seems like a doable workaround.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @doncoryon

    I hope you’re well today and thank you for your question!

    The Page Cache (I understand that’s what you’re referring to) in Hummingbird can be turned on/off for all logged-in users at once, regardless of their role, with “Include logged in users” switch on “Hummingbird -> Caching -> Page Cache” page.

    There’s no option to set that based on user-role but it might be doable with a filter:

    wphb_shold_cache_request_pre

    This filter is used like this in plugin code

    $state = apply_filters( 'wphb_shold_cache_request_pre', true );

    so if you add it (“add_filter”) to return “false” and do it only if logged-in user is of certain role it should “break” the cache and user should be served not-cached version of a page.

    That is, assuming that caching for logged-in users is enabled at all.

    That being said, would you tell me more about this conflict that you discovered – what’s the exact issue? Have you tried to actually disable cache for logged-in users or entire to confirm it’s conflict with cache?

    Best regards,
    Adam

    Plugin Support Dimitris – WPMU DEV Support

    (@wpmudev-support6)

    Hello there @doncoryon

    It’s been a while since we’ve heard back from you so I’m going to mark this topic as resolved. You can still post back any updates and we can continue.

    Take care,
    Dimitris

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Cache logged in users (by role)?’ is closed to new replies.