Cache flushing with cron
-
Hi,
I’d like to clear and reload the cache once per day by external cron, pointing to my …/w3tc-clear-all-plus-divi.php url.
I think the file should look like this:
<?php // Load WordPress. require( 'wp-load.php' ); // Clear Divi cache (the theme static CSS files). if ( function_exists( 'et_core_page_resource_auto_clear' ) ) { et_core_page_resource_auto_clear(); } // Clear minified CSS and JavaScript files. if ( function_exists( 'w3tc_flush_all' ) ) { w3tc_flush_all(); }
But it looks like the cache preload is not triggered by w3tc_flush_all(). Can you please recommend the function to start the preload?
Thanks, great plugin!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Cache flushing with cron’ is closed to new replies.