This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Disable post types from batcache/object cache - working | |
add_filter( 'advanced_post_cache_skip_for_post_type', 'apc_exempted_cpts', 10,2); | |
function apc_exempted_cpts($return_me,$post_type) { | |
$exempted = array('project'); | |
if ( in_array($post_type,$exempted) ) { | |
return true; | |
} |