Title: wp_cache_supports
Published: November 2, 2022
Last modified: February 24, 2026

---

# wp_cache_supports( string $feature ): bool

## In this article

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

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

Determines whether the object cache implementation supports a particular feature.

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

 `$feature`stringrequired

Name of the feature to check for. Possible values include: `'add_multiple'`, `'set_multiple'`,`'
get_multiple'`, `'delete_multiple'`, `'flush_runtime'`, `'flush_group'`.

## 󠀁[Return](https://developer.wordpress.org/reference/functions/wp_cache_supports/?output_format=md#return)󠁿

 bool True if the feature is supported, false otherwise.

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

    ```php
    function wp_cache_supports( $feature ) {
    	switch ( $feature ) {
    		case 'add_multiple':
    		case 'set_multiple':
    		case 'get_multiple':
    		case 'delete_multiple':
    		case 'flush_runtime':
    		case 'flush_group':
    			return true;

    		default:
    			return false;
    	}
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/cache.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/cache.php#L314)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/cache.php#L314-L327)

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

| Used by | Description | 
| [wp_cache_flush_group()](https://developer.wordpress.org/reference/functions/wp_cache_flush_group/)`wp-includes/cache.php` |

Removes all cache items in a group, if the object cache implementation supports it.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/functions/wp_cache_supports/?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%2Ffunctions%2Fwp_cache_supports%2F)
before being able to contribute a note or feedback.