wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_cache_supports › WordPress Function

Since6.1.0
Deprecatedn/a
wp_cache_supports ( $feature )
Parameters:
  • (string) $feature Name of the feature to check for. Possible values include: 'add_multiple', 'set_multiple', 'get_multiple', 'delete_multiple', 'flush_runtime', 'flush_group'.
    Required: Yes
Returns:
  • (bool) True if the feature is supported, false otherwise.
Defined at:
Codex:

Determines whether the object cache implementation supports a particular feature.



Source

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;
	}
}