Schedule Purge CRON Job | WordPress.org

[ad_1]

I am not qtwrk, but I also can tell you that cache plugin doesn’t have such feature. But with a few lines of code it is possible to do that? Are you interested in to get it?

Plugin Support
qtwrk

(@qtwrk)

create a php file , like 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' );
  echo 'done';
}

then create a cron job from your server to curl/wget it

@qtwrk

Problem, everyone can request this URL. For security reason I’d prefer a different method.

Plugin Support
qtwrk

(@qtwrk)

you can easily improvise it

e.g. http auth , localhost IP restriction , secret file name , query string verification …etc

Thank you so much @qtwrk. Also it would be great if you introduce this feature in next updates.

So what is your solution @serpentdriver ??
Though I have written my own Cron Script.

  • This reply was modified 8 minutes ago by K.H.Rifat.
  • This reply was modified 7 minutes ago by K.H.Rifat.

So what is your solution @serpentdriver Though I have written my own Cron Script.

Post it please. That saves me the work if your solution already corresponds to my suggestion.

Yes, but please post your solution first if it really exists?!

@serpentdriver you offered first. So you should share first.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer