wp_using_ext_object_cache( bool $using = null )
Toggle $_wp_using_ext_object_cache on and off without directly touching global.
Description Description
Parameters Parameters
- $using
-
(bool) (Optional) Whether external object cache is being used.
Default value: null
Return Return
(bool) The current 'using' setting.
Source Source
File: wp-includes/load.php
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;
}
Expand full source code Collapse full source code View on Trac
Changelog Changelog
| Version | Description |
|---|---|
| 3.7.0 | Introduced. |