wp_cache_add_non_persistent_groups()WP 2.6.0

Adds a group or set of groups to the list of non-persistent groups.

No Hooks.

Return

null. Nothing (null).

Usage

wp_cache_add_non_persistent_groups( $groups );
$groups(string|string[]) (required)
A group or an array of groups to add.

Examples

0

#1 Add non-permanent object cache groups

wp_cache_add_non_persistent_groups( [ 'special', 'foo', 'bar' ] );

Changelog

Since 2.6.0 Introduced.

wp_cache_add_non_persistent_groups() code WP 6.5.2

function wp_cache_add_non_persistent_groups( $groups ) {
	// Default cache doesn't persist so nothing to do here.
}