apply_filters( ‘site_status_persistent_object_cache_thresholds’, int[] $thresholds )

In this article

Filters the thresholds used to determine whether to suggest the use of a persistent object cache.

Parameters

$thresholdsint[]
The list of threshold numbers keyed by threshold name.

Source

$thresholds = apply_filters(
	'site_status_persistent_object_cache_thresholds',
	array(
		'alloptions_count' => 500,
		'alloptions_bytes' => 100000,
		'comments_count'   => 1000,
		'options_count'    => 1000,
		'posts_count'      => 1000,
		'terms_count'      => 1000,
		'users_count'      => 1000,
	)
);

Changelog

VersionDescription
6.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.