Viewing 3 replies - 1 through 3 (of 3 total)
  • The entire cache or only the cache generated by cache plugin?

    Thread Starter ramesh2014

    (@ramesh2014)

    Hi
    I need to delete automatically (once a week) cache generated by cache plugin.

    thank you.

    1. Create a blank PHP file and copy code below in this file.
    2. Place this file in root directory of your WP installation.
    3. Setup a cron with weekly interval

    header('X-LiteSpeed-Cache-Control: no-cache');
    $tag = __DIR__ . '/wp-content/plugins/litespeed-cache/';
    $tag = substr(md5($tag), -3) . '_';
    header("X-LiteSpeed-Purge:" . $tag);
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Automatically Delete Cache’ is closed to new replies.