Recent

crp_related_cache_clear_limitfilter

Filters how many related posts are looked up when clearing their cache after a save.

Relatedness is roughly symmetric but its ranking is not: the saved post may sit outside the top results of a post that still lists it. Raise this to catch more of them, at the cost of more rows deleted per save.

Type: filter
Since: 4.5.0
Source: includes/util/class-cache.php line 434

Parameters

Type Name Description
int $limit Number of related posts to look up. Defaults to the limit setting.
int $post_id Post ID being saved.

Usage

add_filter( 'crp_related_cache_clear_limit', function($limit, $post_id) {
    // ...
    return $limit;
} );