Skip to content

Commit

Permalink
never load advanced-cache.php. see #164
Browse files Browse the repository at this point in the history
  • Loading branch information
scribu committed Dec 30, 2012
1 parent 2d5ccb2 commit 8f3b660
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion php/class-wp-cli.php
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ static function before_wp_load() {
}
}

// Pretend we're in WP_ADMIN, to side-step full-page caching plugins
// Pretend we're in WP_ADMIN
define( 'WP_ADMIN', true );
$_SERVER['PHP_SELF'] = '/wp-admin/index.php';
}
Expand Down
4 changes: 0 additions & 4 deletions php/wp-settings-cli.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@
// Check if we're in WP_DEBUG mode.
wp_debug_mode();

// For an advanced caching plugin to use. Uses a static drop-in because you would only want one.
if ( WP_CACHE )
WP_DEBUG ? include( WP_CONTENT_DIR . '/advanced-cache.php' ) : @include( WP_CONTENT_DIR . '/advanced-cache.php' );

// Define WP_LANG_DIR if not set.
wp_set_lang_dir();

Expand Down

0 comments on commit 8f3b660

Please sign in to comment.