Known Good IP Cache is not working
-
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] )
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Known Good IP Cache is not working’ is closed to new replies.