• Resolved gabrieluno

    (@gabrieluno)


    Hello, I need to purge the cache for a single user’s private cache. I believe I could use the hook ‘litespeed_purge_private’, but the official documentation doesn’t specify how to do it.

    I’m trying with;do_action('litespeed_purge_private', 'user_' . $user_id); , but I’m not sure if it’s correct. Could you please assist me?

    Thank you.

    • This topic was modified 10 months ago by gabrieluno.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support qtwrk

    (@qtwrk)

    unfortunately this is not possible , all private cache are labelled with private, so it’s all or nothing

    Thread Starter gabrieluno

    (@gabrieluno)

    @qtwrk Thanks for the help. One last question, when using litespeed_purge_url or litespeed_purge_post, every time I refresh the post it alternates between the latest cached version and the previous one. This happens while logged in, but I have caching enabled for logged-in users.

    Is there any solution for this?
    Is it possible to purge the cache of a post for all users (including logged-in users)? ??

    • This reply was modified 10 months ago by gabrieluno.
    • This reply was modified 10 months ago by gabrieluno.
    • This reply was modified 10 months ago by gabrieluno.
    • This reply was modified 10 months ago by gabrieluno.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Purge cache for a single user’s private cache’ is closed to new replies.