Support » Plugin: Varnish/Nginx Proxy Caching » Custom post types not being found

  • One thing I noticed when using the plugin is that my custom post types were not being matched by this plugin.

    Most custom post types are added on init event. This plugin also sets everything up on init, but it never sets a priority. This causes vcaching plugin to fire its actions before my plugins ever get the chance to register my CPTs.

    I would suggest that vcaching increase the init priority above the default 10 value.

    Also, the Purge from Varnish admin list buttons only get added to page and post post types. That’s because these two post types are hardcoded into the plugin:

    class VCaching {
        protected $postTypes = array('page', 'post');

    Can this array please be appended with get_post_types()?


  • The topic ‘Custom post types not being found’ is closed to new replies.