Thanks for the question. The WP_Object_Cache API supports the use of
wp_cache_add_non_persisted_group( ‘groupname’ );
as the approved way to suppress the caching of a particular cache group. Call this from init on every page view.
I searched the WP code base and didn’t find this funciton, only
/**
* Adds a group or set of groups to the list of non-persistent groups.
*
* @since 2.6.0
*
* @param string|string[] $groups A group or an array of groups to add.
*/
function wp_cache_add_non_persistent_groups( $groups ) {
// Default cache doesn’t persist so nothing to do here.
}