wp_cache_add_non_persistent_groups()
Adds a group or set of groups to the list of non-persistent groups.
No Hooks.
Return
null
. Nothing.
Usage
wp_cache_add_non_persistent_groups( $groups );
- $groups(string|string[]) (required)
- A group or an array of groups to add.
Examples
#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() wp cache add non persistent groups code WP 6.1.1
function wp_cache_add_non_persistent_groups( $groups ) { // Default cache doesn't persist so nothing to do here. }