Support » Plugin: W3 Total Cache » [Plugin: W3 Total Cache] Purge policy on custom post tye

  • Hi, i have a custom post type on my site. If i for instance change a post in that CPT the older version of it still remains on the index page of CPT. Although on the single-CPT page it shows the updated version.

    This only happens when I use disk enhanced or disk basic and not in APC mode for pagecache. I want it to work on the disk mode since that seems to makes the site faster.

    Does it have something to do with the purge policy? cant find custom post type there.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Would like some help on this as well. I need w3 total cache to purge the page cache on updates/edits to custom post types and it’s not happening.

    Purge policy for custom post types would be nice.

    I’m really still learning PHP and WP, but as I understand it (I’m basing this largely on a similar thread in a WP Super Cache forum) the main issue is getting the custom post types in order to include them in the policy established for Posts and Pages.

    I’ve done a little poking around, but can’t find where to hook into the existing functions in W3TC to add to the list of post types it “watches”, but couldn’t get_post_types be used to gather the list of whatever CPTs had been registered, and then programmatically add these to the “watch list”?
    I found this in the codex for getting a list of publicly-available CPTs:

      'public'   => true,
      '_builtin' => false
    $output = 'names'; // names or objects, note names is the default
    $operator = 'and'; // 'and' or 'or'
      foreach ($post_types  as $post_type ) {
        echo '<p>'. $post_type. '</p>';

    Same here: index page for my custom post type is not updating.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: W3 Total Cache] Purge policy on custom post tye’ is closed to new replies.