Hello,
You can use the following code for this:
if (function_exists('w3tc_flush_post')){
w3tc_flush_post($post_id);
}
Thread Starter
eddr
(@eddr)
Thanks, I’m aware of this, but it doesn’t work when there page is cached by its GET parameters
Do you see what I mean?
Hello,
Yes, for this you can use:
w3tc_flush_url( $url );
Thread Starter
eddr
(@eddr)
Thanks Marko but it simply doesn’t work
Was digging a bit in the W3TC code and printed the keys that are used to delete the page cache, located in “PgCache_Flush.php” via this line
“$page_keys = apply_filters( ‘w3tc_pagecache_flush_url_keys’, $page_keys );”
The keys are the same no matter what query string I add to the w3tc_flush_url command. It doesn’t seem to take them into account.
Please advise!
Thread Starter
eddr
(@eddr)
Marko, please advise.. it doesn’t work
Hello,
Can you please share which cache engine you are using?