Hi wordpresslover7,
In order for Vendi Cache to exist in an environment where Wordfence is also installed we had to rename anything that was Wordfence related for both technical and also legal reasons. We still have a little bit of code that has “Wordfence” in it (including a class with that name) but that will be going away soon.
The very short and literal answer is that we cannot use that function exactly as is however we will be able to give you a different function that does the same exact thing. Currently there isn’t a function exposed but we’ve added that as a feature request and we should be able to push that out pretty soon.
Until we push that change live, however, you can still use the built-in constants to tell us not to cache something. If at any point in your request pipeline you want to disable caching for a specific URL you can just set the global constant DONOTCACHEPAGE
to true and we won’t cache anything:
if( ! defined( 'DONOTCACHEPAGE' ) )
{
define( 'DONOTCACHEPAGE', true );
}
However, please note that setting this on something that was already previously cached will not un-cache it, you’ll need to manually do that and then we’ll begin to honor your command.
Thanks,
Chris