• Resolved raymond621

    (@raymond621)


    Hi Support

    How do I suppress Litespeed from auto purging. I have already set “Default Public Cache TTL” to 1 week, unchecked everything under “Auto Purge Rules For Publish/Update”, and delete all hooks from “Purge All Hooks”. I also added the following code from theme’s function.php:

    if (strpos($_SERVER['REQUEST_URI'], "LSCWP_NONCE") === false){
    ob_start( function($buffer){
    @header('X-LiteSpeed-Purge: nothing');
    return $buffer;
    } );
    }

    For some reason, it still auto purges twice in two days. I do not know when it actually happened but if I look at the “Show crawler status”, I can see it is running and under status, some are shown as “waiting to be crawled”.

    Secondly I want to mention that some of these pages are marked as cached under litespeed>crawler>map, when I inspect the page using chrome network, it is still marked as miss. What can possible be wrong with the setup?

    Thank you

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

    (@qtwrk)

    did you put that code at top of your funcitons.php ?

    the crawler status is not always accurate , better to verify by yourself

    there are could be multiple varies , like you have mobile page crawled , but you visited as desktop , or vice versa

    or the crawler finished non-webp vary , yet you visit it as webp user

    Thread Starter raymond621

    (@raymond621)

    Yes, I placed the code at the top of function.php
    And I do not have separate cache for mobile device. So if I visit from desktop or mobile, both will have the same version of cache. I also checked that all crawler has completed the entire crawling cycle because when I click on “Show crawler status”, it says status “End” at position 1.

    Plugin Support Hai Zheng?

    (@hailite)

    For the purge issue, there should be a purge log. Check it to see what the purge reason is.

    For other questions, please create separate topics for easier and clearer discussion.

    Thread Starter raymond621

    (@raymond621)

    Where is the purge log located at?

    Plugin Support qtwrk

    (@qtwrk)

    it will be wp-content/debug.purge.log

    Thread Starter raymond621

    (@raymond621)

    i checked, there’s nothing inside the purge log ??

    Plugin Support qtwrk

    (@qtwrk)

    did you enable debug log to ON and set level to advance ?

    the log is going to fill after a purge happened.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Stop Auto Purging’ is closed to new replies.