What you can do is install the “WP Control” plugin to create cron jobs from WP admin panel.
Then in the PHP cron job, just call “wpfc_clear_all_cache(true);”
That’s it 🙂
Edit: “true” arg is to purge the minified data too
-
This reply was modified 5 years, 3 months ago by ahnurbd.
Tried this in a cron job and everything seems to work for me. (deletes statistics though)
\WP_Rest_Cache_Plugin\Includes\Caching\Caching::get_instance()->clear_caches(true);