• Resolved kelsangchodor

    (@kelsangchodor)


    Hi there!

    We have our Litespeed settings set o crawl our entire website every six hours. From what I understanding – when you crawl the whole website it doesn’t purge all the pages first – and then refresh them with the crawl – but just checks to see if any pages need to be cached/updated.

    I could see an option to “schedule purged urls” – but I couldn’t see an option to automatically purge the entire contents of the site at a certain set time? Is this possible within the word press plugin envrionment or does it need to be done with a cron job outside of the plugin?

    Thanks so much for your help. I have tried to read the documentation to fid the answer for this,

    Best wishes

    Chris Skelton

    The page I need help with: [log in to see the link]

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

    (@qtwrk)

    you need to use system cron for this

    create a php file , let’s say cron_purge.php , put it at same dir as your wp-config.php with code

    <?php
    require( './wp-load.php' );
    if ( defined('LSCWP_V')) {
      do_action( 'litespeed_purge_all' );
    }

    after that use system cron to curl/wget this purge as https://yourdomain.com/cron_purge.php at time you see convieniente

    Thread Starter kelsangchodor

    (@kelsangchodor)

    Thanks so much for your help. Awesome.

    Could you give me the php code to initiate the crawl as well?

    Really appreciate your time

    Plugin Support qtwrk

    (@qtwrk)

    well , there is none

    as long as you can trigger wp cron , it will also take crawler task.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Auto-purge site with cron job’ is closed to new replies.