• Resolved Vivek Kumar

    (@vivek1273)


    Known Good IP Cache is not working so i have checked the code and found the below logic which is written. I think, You need to change the logic.

    $pvb_transient_exploded = explode( ‘-‘, get_transient( ‘pvb_’ . get_option( ‘pvb_proxycheckio_current_key’ ) . ‘_’ . $visitor_ip ) );
    if ( false === $pvb_transient_exploded[0] ) {
    $pvb_transient_exploded[0] = 0;
    } else {
    $pvb_transient_exploded[0] = 1;
    }

    if ( time() >= $pvb_transient_exploded[0] ) {
    //
    //Logic for check this IP with the API.
    //
    }

    In the above if else condition, $pvb_transient_exploded[0] is getting set to 1 or 0 so the below if condition will always false.

    if ( time() >= $pvb_transient_exploded[0] )

    • This topic was modified 4 years, 1 month ago by Vivek Kumar.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Proxy & VPN Blocker

    (@rickstermuk)

    Hi Vivek,

    Thank you for your bug report! I do really appreciate it.

    This bug rendered the Known Good IP cache at least partly broken since the December release of PVB but then totally broken in the 1.8.0 release, for that, I do apologize.

    This bug did not affect the functionality of proxies and VPN’s being detected, but it did result in the good IP’s not being cached to prevent rechecking, this would result in higher than normal queries.

    A fix for this and a couple of other small things that have been discovered which were related to this is now available. The API call function has been totally rewritten so as to not be so long and confusing now, also.

    Thread Starter Vivek Kumar

    (@vivek1273)

    Thank you ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Known Good IP Cache is not working’ is closed to new replies.