ImprovementRelated posts just shown when logged in

  • Author
    Posts
  • Afinação – acabando com os mitos

    The related posts just shown when logged in to wordpress.

    Logged in:
    logged in

    Logged out:
    logged in

    #5276

    Probably, the bug is in this part of the code. Current user is none when nobody is logged in:

    
    	if(  isset($yuzo_options->transient) && $yuzo_options->transient ){
    		include_once(ABSPATH . 'wp-includes/pluggable.php');
    		if( false === ($the_query_yuzo = get_transient($transient_name) ) || ( current_user_can( 'manage_options' )  && !isset($_GET['P3_NOCACHE']) )  ){
    			$rebuilt_query  = true;
    		}
    	}
    
    #5278
    iLen
    Keymaster

    Hello, disable the option of transient, also clean the transient and remove the browser cache. You inform me if you still have the same problems.

    #5286

    I tried to remove transient as you said, with no success.

    I solved the problem bypassing the code above, keeping just the line below. I don’t know what does it change on overall functioning of the plugin.

    $rebuilt_query = true;

    #5289
    iLen
    Keymaster

    You must disable the option: transient

    #5291

    it is already disabled.
    printscreen

    #5294
    iLen
    Keymaster

    Hello, I think that in the next version of the plugin I will remove that option. It has brought problems to the lengthening of time.

    #5300
Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.