• edmundspriede

    (@edmundspriede)


    Version 7.9 
    hey, i have been seeing this for years. i cannot disable cache purges. i want to do it manually.

    i still get purge on any plugin update, but it is switced off .

    why so hard to bypass purges ?

Viewing 1 replies (of 1 total)
  • Plugin Support qtwrk

    (@qtwrk)

    add_filter('litespeed_purge_tags', function($purge_tags, $is_private) {
    if (isset($_SERVER['REQUEST_URI']) && strpos($_SERVER['REQUEST_URI'], 'LSCWP_CTRL=purge') !== false) {
    do_action('litespeed_debug2', 'Preserve manual purge action');
    return $purge_tags;
    }
    return ['_nothing'];
    }

    please try this code snippet, it should suppress any and all automated purges

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.