Flush W3TC Cache Programmatically Doesn’t Work
-
I have a plugin that uses a shortcode and the shortcode has a value that needs to be change. I want that after the value of the shortcode changed, the post that uses that shortcode flushes its cache so the changes will take effect after the change.
I’ve added the following code to flush the single post without luck.
if (function_exists('w3tc_flush_post')){ w3tc_flush_post($post_id); }
I’ve also tried to use the following code to flush all cache without luck as will.
if (function_exists('w3tc_flush_all')){ w3tc_flush_all(); }
Is there something I need to initialize before calling this function?
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Flush W3TC Cache Programmatically Doesn’t Work’ is closed to new replies.