WordPress.org

Forums

WP Super Cache
wp_rejected_uri not working (ver1.4.1) (5 posts)

  1. sumio36
    Member
    Posted 9 months ago #

    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/

  2. Donncha O Caoimh
    Member
    Plugin Author

    Posted 9 months ago #

    That code was moved down to wp_cache_ob_callback(). Can you step through the code in there?

  3. Donncha O Caoimh
    Member
    Plugin Author

    Posted 9 months ago #

    Sorry, there was another error in that file that stopped this working, copy http://svn.wp-plugins.org/wp-super-cache/trunk/wp-cache-phase2.php into your plugins/wp-super-cache/ folder and it will work again.

  4. sumio36
    Member
    Posted 9 months ago #

    Sure, the above code has been moved. However, that code was not working.
    I will try again using http://svn.wp-plugins.org/wp-super-cache/trunk/wp-cache-phase2.php

    Thanks.

  5. mbrsolution
    Member
    Posted 9 months ago #

    Hi @sumio36 have you tested version 1.4.2?

    Kind regards

Reply

You must log in to post.

About this Plugin

  • WP Super Cache
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.