I am running Open Litespeed 1.7.16 with 6 web sites, all of them are Wordpress. How can I flush the cache for all sites?? or better flush them one by one. thanks for your help.
If you don't want to call up every LSCWP installation to purge the cache, there is also a quick and native solution for this. Note, however, that the following solution, like deleting the cache via LSCWP, does not delete the cache files.
Empty /lscache dir
Purge cache by account
1. Create an empty php file with name of your choice and place it in the root of WP
2. Copy the code from bellow in this PHP file
PHP:
<?php
$tag = __DIR__ . '/wp-content/plugins/litespeed-cache/';
$tag = substr(md5($tag), -3) . '_';
if (isset($_GET['action']) && ($_GET['action'] == $tag)) {
header("X-LiteSpeed-Purge:" . $tag);
}else{
exit;
}
Run it in browser like:
Code:
https://www.domain.com/purge.php?action=[$tag]
That's it.
FYI: This method is faster than method of LSCWP.