• Resolved pointsense

    (@pointsense)


    hello

    I need to clear cache via cronjob to execute .php file, so i can set when the time this cache will purge.

    Do you provide any hook to solve this ?

    anyway i have read your documentation, i have create simple php file for purge execute :

    ===

    require( ‘wp-load.php’ );

    // Clear cache.
    do_action( ‘litespeed_purge_all’ );

    ===
    that is lsws-purge.php, so if i run the php file, is it purge working ?

    thanks

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

    (@qtwrk)

    Hi,

    try this

    <?php
    define( 'WP_USE_THEMES', false ); 
    require( './wp-load.php' );
    do_action( 'litespeed_purge_all' );

    assuming this script is at same dir as wp-load.php

    Best regards,

    Thread Starter pointsense

    (@pointsense)

    @qtwrk
    it’s work

    thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘purge all cache via cronjob’ is closed to new replies.