• Resolved pstidsen

    (@pstidsen)


    Hi there,

    We are having troubles with outdated content. E.g., when fixing a spelling mistake on a static page, the front end is not updated for guests.

    I can see that it might have something to do with our purge policy settings. Therefore, I want to ask you:

    1. How should I actually understand the settings? If I check e.g. “Post terms pages”, will all term pages then be purged when I update a post or is it only for post creating? Are the checkboxes only for the default post type? What about pages and CPT?
    2. What are the recommended settings for a blog with posts, custom post types, a custom post taxonomy and also some static pages?
    3. Is it possible to preload all that stuff that is purged?
Viewing 1 replies (of 1 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @pstidsen

    Thank you for reaching out and I am happy to help!
    Can you please sahre the website URL or the page that is not updating so I can check it and also, can you confirme that you are not using any other caching solution like some other plugin or the server-side caching?

    1. Post terms pages – when enabled, it tells the W3TC that the pages using terms (refers to the items in a taxonomy) will be purged:
    if ( $this->_config->get_boolean( 'pgcache.purge.terms' ) ||
    			$this->_config->get_boolean( 'pgcache.purge.feed.terms' ) ) {
    			$taxonomies = get_post_taxonomies( $post_id );
    			$terms = wp_get_post_terms( $post_id, $taxonomies );
    			$terms = $this->_append_parent_terms( $terms, $terms );
    
     

    This is also related to the CPT, however You can add the URL of the custom post in Performance>Page Cache>Purge Policy>Additional pages: and Specify additional pages to purge. Including parent page in path. Ex: parent/posts.
    So you can add CPT /some-post/ to Additional pages:

    2. The default settings + Post terms pages and adding the CPT to additonal pages should be sufficient in this case

    3. You can enable Cache Preload in Performance>Page Cache and enable both ”?Preload cache upon updating a post” and “Preload cache upon publishing a post”

    I hope this helps!

    Thanks!

Viewing 1 replies (of 1 total)
  • The topic ‘Recommended Purge policy’ is closed to new replies.