Make WordPress Core

Ticket #22683: 22683.diff

File 22683.diff, 474 bytes (added by scribu, 11 years ago)
  • wp-settings.php

    diff --git wp-settings.php wp-settings.php
    index 65485a8..8bd7973 100644
    timer_start(); 
    5454wp_debug_mode();
    5555
    5656// For an advanced caching plugin to use. Uses a static drop-in because you would only want one.
    57 if ( WP_CACHE )
     57if ( WP_CACHE && PHP_SAPI !== 'cli' )
    5858        WP_DEBUG ? include( WP_CONTENT_DIR . '/advanced-cache.php' ) : @include( WP_CONTENT_DIR . '/advanced-cache.php' );
    5959
    6060// Define WP_LANG_DIR if not set.