wp_using_ext_object_cache()
Toggle $_wp_using_ext_object_cache on and off without directly touching global.
1 time — -0.00003 sec (speed of light) | 50000 times — 0.01 sec (speed of light)
No Hooks.
Return
true|false
. The current 'using' setting.
Usage
wp_using_ext_object_cache( $using );
- $using(true|false)
- Whether external object cache is being used.
Default: null
Notes
- Global. true|false. $_wp_using_ext_object_cache
Changelog
Since 3.7.0 | Introduced. |
Code of wp_using_ext_object_cache() wp using ext object cache WP 5.9.3
function wp_using_ext_object_cache( $using = null ) { global $_wp_using_ext_object_cache; $current_using = $_wp_using_ext_object_cache; if ( null !== $using ) { $_wp_using_ext_object_cache = $using; } return $current_using; }