Title: site_status_persistent_object_cache_thresholds
Published: November 2, 2022
Last modified: May 20, 2026

---

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

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/site_status_persistent_object_cache_thresholds/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/site_status_persistent_object_cache_thresholds/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/site_status_persistent_object_cache_thresholds/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/site_status_persistent_object_cache_thresholds/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/site_status_persistent_object_cache_thresholds/?output_format=md#wp--skip-link--target)

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

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/site_status_persistent_object_cache_thresholds/?output_format=md#parameters)󠁿

 `$thresholds`int[]

The list of threshold numbers keyed by threshold name.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/site_status_persistent_object_cache_thresholds/?output_format=md#source)󠁿

    ```php
    $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,
    	)
    );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-admin/includes/class-wp-site-health.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-admin/includes/class-wp-site-health.php#L3784)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/class-wp-site-health.php#L3784-L3795)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/site_status_persistent_object_cache_thresholds/?output_format=md#related)󠁿

| Used by | Description | 
| [WP_Site_Health::should_suggest_persistent_object_cache()](https://developer.wordpress.org/reference/classes/wp_site_health/should_suggest_persistent_object_cache/)`wp-admin/includes/class-wp-site-health.php` |

Determines whether to suggest using a persistent object cache.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/site_status_persistent_object_cache_thresholds/?output_format=md#changelog)󠁿

| Version | Description | 
| [6.1.0](https://developer.wordpress.org/reference/since/6.1.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fsite_status_persistent_object_cache_thresholds%2F)
before being able to contribute a note or feedback.