diff --git a/object-cache.php b/object-cache.php index 7571d96f2121dc810c8af11e192d808cda8ef155..d290a493e221557b9921e6698ff20963d1c891dd 100644 --- a/object-cache.php +++ b/object-cache.php @@ -855,7 +855,7 @@ class WP_Object_Cache { // Save to Redis $expiration = absint( $expiration ); if ( $expiration ) { - $result = $this->redis->setex( $derived_key, $this->prepare_value_for_redis( $value ), $expiration ); + $result = $this->redis->setex( $derived_key, $expiration, $this->prepare_value_for_redis( $value ) ); } else { $result = $this->redis->set( $derived_key, $this->prepare_value_for_redis( $value ) ); } @@ -982,7 +982,7 @@ class WP_Object_Cache { // Save to Redis $expiration = absint( $expiration ); if ( $expiration ) { - $result = $this->redis->setex( $derived_key, $this->prepare_value_for_redis( $value ), $expiration ); + $result = $this->redis->setex( $derived_key, $expiration, $this->prepare_value_for_redis( $value ) ); } else { $result = $this->redis->set( $derived_key, $this->prepare_value_for_redis( $value ) ); }