Hello @tangurin
Thank you for reaching out and I am happy to assist you with this.
Have you tried adding those pages to Performance>Page Cache>Purge Policy>Additional pages: and Specify additional pages to purge?
To purge them programmatically, you can call w3tc_flush_url($url) on those posts.
Thanks!
Hello @vmarko
I need to do it dynamically with code, else I need to add a url everytime the terms are changed/added.
The problem is that I want to add the term url’s when a post i saved: “add_action( ‘save_post’)
But then the cache is already purged, and that’s why I can’t queue the urls with flush_url function.
<span style=”text-decoration: underline;”>To be clear:</span>
Problem:
- When a post is saved, the cache on the term landing pages is not purged
- “Purge Policy: Page Cache” -> “Post terms pages” is checked
- Maybe the problem is because the url to our website’s admin and the frontend is different? It is purging cache for the admin url and not the frontend? (I don’t know how the purge is working)
What I am trying to do to solve it:
- I have an add_action for “save_post”
- When a post i saved, I want to add the url’s to the “w3tc_flush_url”, but this doesn’t work because the url’s array are already flushed when the “save_post” is triggered.
Or maybe the question is this simple. Why isn’t the term page cache purged when saving a post?
It works locally but not in production at the server.
Hello @tangurin
IS there any chance you can share the website URL and the URL of the page that is not purged?
Thanks!