crp_internal_post_types
Filters the post types whose saves never touch the CRP cache.
These are WordPress’ own bookkeeping post types, which cannot display related posts. Saving them skips the cache delete entirely, which keeps menu and template saves cheap.
Type: filter
Since: 4.5.0
Source: includes/util/class-cache.php line 198
Parameters
| Type | Name | Description |
|---|---|---|
array |
$internal |
Array of post type names. |
Usage
add_filter( 'crp_internal_post_types', function($internal) {
// ...
return $internal;
} );