w3tc_flush_all and w3tc_flush_post not working
-
Hi,
As the title implies, both of the functions are not working even though they worked before.
Below is the the function where I used the w3tc_flush_post, I also tried putting w3tc_flush_all for testing purpose inside but still doesn’t work.
Meanwhile the manual purge using the admin bar works and on post/page purging.
If needed we can provide the testing site for checking.
– function.php
function flush_courses_acf( $course_ids ) { $course_flushed_ids = []; if ( function_exists('w3tc_flush_post') ) { // Loop all courses IDs and purge foreach( $course_ids as $course ) { $purge = get_field( 'course_flush_cache_sync', $course ); if( $purge != 'off' ) { w3tc_flush_post( $course ); array_push( $course_flushed_ids, $course ); } } } return $course_flushed_ids; }
Regards,
Rob
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘w3tc_flush_all and w3tc_flush_post not working’ is closed to new replies.