Plugin Contributor
cjhaas
(@chrisvendiadvertisingcom)
Hi Roger,
We’ll be adding that in very soon! Unfortunately do to namespace conflicts the function’s name will change so you’ll need to update your code. I’m hoping that Wordfence will keep that static method around and call a global do_action() instead that I can hook into but that would be on Wordfence’s side to do that.
Thanks,
Chris
Okay, thanks for your quick response! I don’t care about the functions name as long as a function exist to clear the cache.
Plugin Contributor
cjhaas
(@chrisvendiadvertisingcom)
Hi Roger,
We just released version 1.2.0 that has this feature as part of the public API. You can now clear the cache via the static method:
\Vendi\Cache\api::clear_entire_cache()
Thanks,
Chris
I just discovered (yesterday) that the Falcon Engine had disappeared.. and most grateful to discover your work thanks !
And as luck would have it ! you had just added the Clear Cache to the plugin, as the OP had mentioned, I also use a cron job, or manual call via a url if when needed.
For those people that need info on how to do this…
create a file called (or whatever you want) clearcache.php and put in your WP directory.
<?php
date_default_timezone_set("America/New_York");
include 'wp-load.php';
\Vendi\Cache\api::clear_entire_cache();
echo "Cache Cleared<br>";
echo "The time is " . date("m-d-Y h:i:sa");
?>
and thusly call it manually or in a cron.
Thanks for your work.
R.