On this page
wp_using_ext_object_cache( bool $using = null ): bool
Toggle $_wp_using_ext_object_cache on and off without directly touching global.
Parameters
$usingbool Optional-
Whether external object cache is being used.
Default:
null
Return
bool The current 'using' setting.
Source
File: wp-includes/load.php. View all references
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;
}
Related
Used By
| Used By | Description |
|---|---|
| WP_Site_Health::get_test_persistent_object_cache() wp-admin/includes/class-wp-site-health.php | Tests if the site uses persistent object cache and recommends to use it if not. |
| delete_expired_transients() wp-includes/option.php | Deletes all expired transients. |
| WP_Network::get_by_path() wp-includes/class-wp-network.php | Retrieves the closest matching network for a domain and path. |
| wp_start_object_cache() wp-includes/load.php | Start the WordPress object cache. |
| set_site_transient() wp-includes/option.php | Sets/updates the value of a site transient. |
| delete_site_transient() wp-includes/option.php | Deletes a site transient. |
| get_site_transient() wp-includes/option.php | Retrieves the value of a site transient. |
| get_transient() wp-includes/option.php | Retrieves the value of a transient. |
| set_transient() wp-includes/option.php | Sets/updates the value of a transient. |
| wp_load_core_site_options() wp-includes/option.php | Loads and caches certain often requested site options if is_multisite() and a persistent cache is not being used. |
| delete_transient() wp-includes/option.php | Deletes a transient. |
Changelog
| Version | Description |
|---|---|
| 3.7.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_using_ext_object_cache