wp_cache_add_non_persistent_groups() WordPress Function
The wp_cache_add_non_persistent_groups() function allows you to add groups to the non-persistent cache. This is useful for caching data that is not needed to be stored for a long period of time.
wp_cache_add_non_persistent_groups( string|string[] $groups ) #
Adds a group or set of groups to the list of non-persistent groups.
Parameters
- $groups
(string|string[])(Required)A group or an array of groups to add.
Source
File: wp-includes/cache.php
function wp_cache_add_non_persistent_groups( $groups ) { // Default cache doesn't persist so nothing to do here. }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.6.0 | Introduced. |