Replies: 0
Hi,
I’m trying to deal with W3 cache and a Booking plugin, that shows a calendar with customer bookings that I don’t want to be cached (because users need to check availability in real time).
As I don’t want to exclude pages from cache, I looked for documentation, and the plugin is suggesting using the following for WP Fastest cache:
function my_custom_flush_cache() {
wpfc_clear_all_cache();
}
add_filter( 'hb_reservations_updated', 'my_custom_flush_cache' );
add_filter( 'hb_blocked_accom_updated', 'my_custom_flush_cache' );
I tried editing the wpfc_clear_all_cache(); with
$w3_plugin_totalcache->flush_pgcache();
but I’m always getting server error.
How can I make W3 cache purge automatically when the two filters are applied?
Thanks in advance for your help!