• Hi, following this support reply I’ve added this code to functions.php:

    add_action( 'save_post', 'wd_docket_cache_flush', 10, 3 );

    function wd_docket_cache_flush( $post_id, $post, $update ) {
    wp_cache_flush();
    }

    But when I create and save a new page and then check the Docket Cache config page, the caches aren’t being cleared. Am I missing something?

    Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Programmatically clearing cache not working’ is closed to new replies.