How to clear cache when a post is published via XML-RPC?
-
I think this may be a bug, but currently when posts are published to the sites I’m running wordfence on via an XML-RPC process the cache is not cleared.
The XML-RPC posts do not appear unless the cache is manually cleared or a post is published by normal means.
I’m guessing it may be as simple as adding an action to the xmlrpc_publish_post event. Something like the snippet below replacing the ???? with whatever function is needed to clear the wordfence cache.
add_action('xmlrpc_publish_post', '????', 15 );
Can someone let me know if I’m on the right track and if so what is the function I’m after?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘How to clear cache when a post is published via XML-RPC?’ is closed to new replies.