W3 Total Cache
Purge policy on custom post tye (5 posts)

  1. Wellton
    Posted 3 years ago #

    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.


  2. dannybatista
    Posted 3 years ago #

    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.

  3. cerco
    Posted 3 years ago #

    Purge policy for custom post types would be nice.

  4. Robert.Vidrine
    Posted 3 years ago #

    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>';
  5. dking64
    Posted 3 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • W3 Total Cache
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic