mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-15 07:05:37 +01:00
Move the global up
git-svn-id: http://svn.automattic.com/wordpress/trunk@14181 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
cbdf7e3aed
commit
0dfea670fb
@ -348,9 +348,10 @@ function wp_set_wpdb_vars() {
|
|||||||
* @since 3.0.0
|
* @since 3.0.0
|
||||||
*/
|
*/
|
||||||
function wp_start_object_cache() {
|
function wp_start_object_cache() {
|
||||||
|
global $_wp_using_ext_object_cache;
|
||||||
|
|
||||||
$first_init = false;
|
$first_init = false;
|
||||||
if ( ! function_exists( 'wp_cache_init' ) ) {
|
if ( ! function_exists( 'wp_cache_init' ) ) {
|
||||||
global $_wp_using_ext_object_cache;
|
|
||||||
if ( file_exists( WP_CONTENT_DIR . '/object-cache.php' ) ) {
|
if ( file_exists( WP_CONTENT_DIR . '/object-cache.php' ) ) {
|
||||||
require_once ( WP_CONTENT_DIR . '/object-cache.php' );
|
require_once ( WP_CONTENT_DIR . '/object-cache.php' );
|
||||||
$_wp_using_ext_object_cache = true;
|
$_wp_using_ext_object_cache = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user