WordPress.org

Support

Support » Plugins and Hacks » WP Super Cache » wp_rejected_uri not working (ver1.4.1)

wp_rejected_uri not working (ver1.4.1)

  • I updated several sites to 1.4.1 today.
    After that, wp_rejected_uri not working.
    Following have disappeared from ver 1.4.1.

    [ Moderator note: code fixed. Please wrap code in the backtick character or use the code button. ]

    --- /wp-super-cache-1.4/wp-cache-phase2.php
    +++ /wp-super-cache-1.4.1/wp-cache-phase2.php
    
    -	$script = basename($_SERVER['PHP_SELF']);
    -	if (!in_array($script, $cache_acceptable_files) && wp_cache_is_rejected($wp_cache_request_uri)) {
    -		if ( isset( $GLOBALS[ 'wp_super_cache_debug' ] ) && $GLOBALS[ 'wp_super_cache_debug' ] ) wp_cache_debug( 'URI rejected. Not Caching', 2 );
    -		return false;
    -	}
    -	if (wp_cache_user_agent_is_rejected()) {
    -		if ( isset( $GLOBALS[ 'wp_super_cache_debug' ] ) && $GLOBALS[ 'wp_super_cache_debug' ] ) wp_cache_debug( "USER AGENT ({$_SERVER[ 'HTTP_USER_AGENT' ]}) rejected. Not Caching", 4 );
    -		return;
    -	}

    https://wordpress.org/plugins/wp-super-cache/

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘wp_rejected_uri not working (ver1.4.1)’ is closed to new replies.
Skip to toolbar