Closed dilirity closed 8 months ago
This issue has been marked as stale. This happened because:
No further action is needed. But it's worth checking if this ticket has clear reproduction steps and it is still reproducible. Feel free to close this issue if you think it's not valid anymore — if you do, please add a brief explanation.
Impacted plugin
Super Cache
Quick summary
Home page cache is invalidated when preventing cache clear using this filter.
Steps to reproduce
/wp-content/cache/supercache/sitedomain.com/
)functions.php
:function create_posttype() {
}
// Hooking up our function to theme setup. add_action( 'init', 'create_posttype' );
add_filter( 'wp_super_cache_clear_post_cache', function ( $clear, $post ) { if ( 'myprefix_movies' === $post->post_type ) { return false; }
}, 10, 2 );