wp_using_ext_object_cache() WP 3.7.0
Toggle $_wp_using_ext_object_cache on and off without directly touching global.
Хуков нет.
Возвращает
true/false. The current 'using' setting.
Использование
wp_using_ext_object_cache( $using );
- $using(true/false)
- Whether external object cache is being used.
Заметки
- Global. true/false. $_wp_using_ext_object_cache
Список изменений
С версии 3.7.0 | Введена. |
Код wp_using_ext_object_cache() wp using ext object cache WP 5.6.2
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;
}