Filter hook 'site_status_should_suggest_persistent_object_cache'

in WP Core File wp-admin/includes/class-wp-site-health.php at line 3526

Description

Filters whether to suggest use of a persistent object cache and bypass default threshold checks. Using this filter allows to override the default logic, effectively short-circuiting the method.

Occurrences

Filename Line Number
wp-admin/includes/class-wp-site-health.php 3526

Parameters

Type Name Description
bool|null $suggest Boolean to short-circuit, for whether to suggest using a persistent object cache. Default null.

PHP Doc

/**
		 * Filters whether to suggest use of a persistent object cache and bypass default threshold checks.
		 *
		 * Using this filter allows to override the default logic, effectively short-circuiting the method.
		 *
		 * @since 6.1.0
		 *
		 * @param bool|null $suggest Boolean to short-circuit, for whether to suggest using a persistent object cache.
		 *                           Default null.
		 */