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

    (@qtwrk)

    Hi,

    Could you please be a little bit of more specific ?

    what do you mean by “cache in db”?

    Best regards,

    Thread Starter akkara

    (@akkara)

    Hello,

    Thank you for your reply,

    I am developed a plugin for client, but Lightspeed cache keeps old pages even contents change… Then my clients tell me that the website isnt changed, because she is not aware of LSC exists there, and she wont be in the future. So I need to trigger LSC to clear old caches programmaticly whenever she changes contents which provided by my plugin.

    Thanks,

    Plugin Support Cold Egg

    (@eric780217)

    Hi @akkara,

    Please check API here to help you purge cache when any content updated.
    https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:cache:lscwp:api#api

    Best,

    Thread Starter akkara

    (@akkara)

    I saw those functions in source code, when I attempt to call “LiteSpeed_Cache_API::purge_all()” I see error of “function/class doesnt exists”. So my pluing run earlier than LSC. Which “WP action” do I need to use?

    Plugin Support Hai Zheng⚡

    (@hailite)

    Usually plugins run API after all plugins are loaded. Please try to run after or in after_setup_theme

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

The topic ‘Clear All Caches Programmaticly’ is closed to new replies.