implementing review from @claudiosanches

This commit is contained in:
Jonathan Moore 2019-06-18 21:20:39 +01:00 committed by GitHub
parent 9e8debd7ba
commit d8470aa45a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -325,7 +325,7 @@ class WC_Session_Handler extends WC_Session {
}
$cache_duration = $this->_session_expiration - time();
if ($cache_duration > 0){
if ( 0 < $cache_duration ) {
wp_cache_add( $this->get_cache_prefix() . $customer_id, $value, WC_SESSION_CACHE_GROUP, $cache_duration );
}
}