WordPress.org

Plugin Directory

Changeset 699010


Ignore:
Timestamp:
04/17/13 10:31:53 (12 months ago)
Author:
donncha
Message:

Dump the GET array if required.

Location:
wp-super-cache/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-super-cache/trunk/wp-cache-phase1.php

    r698473 r699010  
    130130 
    131131    if ( $wp_cache_no_cache_for_get && false == empty( $_GET ) ) { 
    132         if ( isset( $wp_super_cache_debug ) && $wp_super_cache_debug ) wp_cache_debug( "Non empty GET request. Caching disabled on settings page.", 1 ); 
     132        if ( isset( $wp_super_cache_debug ) && $wp_super_cache_debug ) wp_cache_debug( "Non empty GET request. Caching disabled on settings page. " . print_r( $_GET, 1 ), 1 ); 
    133133        return false; 
    134134    } 
     
    136136    if ( $wp_cache_object_cache && wp_cache_get_cookies_values() == '' ) {  
    137137        if ( !empty( $_GET ) ) { 
    138             if ( isset( $wp_super_cache_debug ) && $wp_super_cache_debug ) wp_cache_debug( "Non empty GET request. Not serving request from object cache", 1 ); 
     138            if ( isset( $wp_super_cache_debug ) && $wp_super_cache_debug ) wp_cache_debug( "Non empty GET request. Not serving request from object cache. " . print_r( $_GET, 1 ), 1 ); 
    139139            return false; 
    140140        } 
  • wp-super-cache/trunk/wp-cache-phase2.php

    r698494 r699010  
    4747 
    4848    if ( $wp_cache_no_cache_for_get && false == empty( $_GET ) && false == defined( 'DOING_CRON' ) ) { 
    49         if ( isset( $wp_super_cache_debug ) && $wp_super_cache_debug ) wp_cache_debug( "Non empty GET request. Caching disabled on settings page.", 1 ); 
     49        if ( isset( $wp_super_cache_debug ) && $wp_super_cache_debug ) wp_cache_debug( "Non empty GET request. Caching disabled on settings page. " . print_r( $_GET, 1 ), 1 ); 
    5050        return false; 
    5151    } 
     
    7272 
    7373    if ( !empty( $_GET ) ) { 
    74         if ( isset( $GLOBALS[ 'wp_super_cache_debug' ] ) && $GLOBALS[ 'wp_super_cache_debug' ] ) wp_cache_debug( 'Supercache caching disabled. Only using wp-cache. Non empty GET request.', 5 ); 
     74        if ( isset( $GLOBALS[ 'wp_super_cache_debug' ] ) && $GLOBALS[ 'wp_super_cache_debug' ] ) wp_cache_debug( 'Supercache caching disabled. Only using wp-cache. Non empty GET request. ' . print_r( $_GET, 1 ), 5 ); 
    7575        $super_cache_enabled = false; 
    7676    } 
Note: See TracChangeset for help on using the changeset viewer.