• Resolved Starhorsepax2

    (@starhorsepax2)


    Occasionally, on one site home page cache glitches and looks wrong. A purge clears it. But it would be nice to be able to auto purge every so often. I think it would slow down the site if we do it every day but isn’t there someway to purge by not just time but so many days? Say 72 hours? (If not maybe that could be a feature request)

Viewing 1 replies (of 1 total)
  • Plugin Support litetim

    (@litetim)

    @starhorsepax2 Thank you for suggestion
    You are able to do clear from server cron service.
    Create a file(on WP root folder, same level as wp-content, wp-admin), named(for example we go with: clear-it.php) with content:

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

    Cron can have this function to command to run:
    wget -q -O - https://example.com/clear-it.php >/dev/null 2>&1

    Replace example.com with your domain url.
    Also this is the simplest code, maybe add some GET variable that is needed for purge to run(for security)

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.