apply_filters( 'relevanssi_disable_related_cache', bool $disable )

This filter hook can be used to disable caching for related posts.


(boolean) Set to true to disable all caching for related posts. Default false.

More information

If you want to disable all caching for related posts for some reason, you can have this filter hook return true:

add_filter( 'relevanssi_disable_related_cache', '__return_true' );

Please don’t do this unless you have a really good reason. There’s a reason why you can’t do this from Relevanssi settings: doing the related posts is a heavy process, and doing that for every page load just doesn’t make much sense.