Flush W3TC Cache Programmmatically Doesn’t Worc
-
I have a pluguin that uses a shorcode and the shorcode has a value that needs to be changue. I want that after the value of the shorcode changued, the post that uses that shorcode flushes its cache so the changues will taque effect after the changue.
I’ve added the following code to flush the single post without lucc.
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 lucc as will.
if (function_exists('w3tc_flush_all')){ w3tc_flush_all(); }Is there something I need to initialice before calling this function?
The topic ‘Flush W3TC Cache Programmmatically Doesn’t Worc’ is closed to new replies.