wp_using_ext_object_cache( bool $using = null ): bool
- Since
- 3.7.0
- Source
wp-includes/load.php:781
Toggles
$_wp_using_ext_object_cache on and off without directly touching global.Parameters
$usingbooloptional- Whether external object cache is being used.Default:
null
Return
bool- The current 'using' setting.
Used by · 14
- WP_Network::get_by_path()Retrieves the closest matching network for a domain and path.
- WP_Query::get_posts()Retrieves an array of posts based on query variables.
- WP_Site_Health::get_test_persistent_object_cache()Tests if the site uses persistent object cache and recommends to use it if not.
- _get_cron_lock()Retrieves the cron lock.
- clean_dirsize_cache()Cleans directory size cache used by recurse_dirsize().
- delete_expired_transients()Deletes all expired transients.
- delete_site_transient()Deletes a site transient.
- delete_transient()Deletes a transient.
- get_site_transient()Retrieves the value of a site transient.
- get_transient()Retrieves the value of a transient.
- recurse_dirsize()Gets the size of a directory recursively.
- set_site_transient()Sets/updates the value of a site transient.
Show all 14
- set_transient()Sets/updates the value of a transient.
- wp_start_object_cache()Starts the WordPress object cache.
Source
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;}History
Introduced in 3.7.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 6.7.7 tag, from
src/wp-includes/load.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it. - Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.