• Hi

    I can’t get w3tc_pgcache_flush_post() to work in functions.php.

    w3tc_pgcache_flush() works fine, but w3tc_pgcache_flush_post() wont work.

    My code is

    function clearCache($post_ID)  {
       if (function_exists('w3tc_pgcache_flush_post')) {
    	w3tc_pgcache_flush_post($_POST['ID']);
       }
    }
    
    add_action('save_post', 'clearCache');

    Am I doing something wrong?

    Thanks, Martin

    https://www.ads-software.com/plugins/w3-total-cache/

Viewing 1 replies (of 1 total)
  • Have you got this working? I have trouble with data entered by Formidable Pro. These data should be displayed on my pages after entry, but they are not, due to the W3TC cache. Only when I refresh the cache manually, or save the page itself manually, is the cache updated.

    I am calling the w3tc_pgcache_flush function after data is saved, but it has no effect.

Viewing 1 replies (of 1 total)
  • The topic ‘w3tc_pgcache_flush_post not working’ is closed to new replies.