Support » Plugin: Cache Enabler » Exclude a custom taxonomy from caching

  • Resolved mapdi


    HI there

    How can we exclude Post with a specific custom taxonomy tag from caching?

    This works in WP-Optimize. Any similiar possibility?

    	function() {
    		if (has_term( array( 'term' ), 'taxonomy-name' ) && !defined('DONOTCACHEPAGE')) {
    			define('DONOTCACHEPAGE', true);
Viewing 1 replies (of 1 total)
  • Plugin Support Corey


    Cache Enabler honors the DONOTCACHEPAGE constant. That means if it’s defined as true at the wp hook like you have in the example above, then Cache Enabler won’t cache that page.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.