Skip to content

Commit aea761d

Browse files
committed
Remove duplicate random calculation in Memcached
1 parent b90f56c commit aea761d

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

src/Memcached.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,6 @@ public static function getRandomServer(
5151
$rand = mt_rand( 1, $total_weight );
5252
}
5353

54-
if ( ! defined( 'STATIC_DEPLOY_WP_ORG_MODE' ) || ! STATIC_DEPLOY_WP_ORG_MODE ) {
55-
$rand = mt_rand( 1, $total_weight );
56-
} else {
57-
$rand = wp_rand( 1, $total_weight );
58-
}
59-
6054
$current = 0;
6155

6256
foreach ( $servers as $server ) {

0 commit comments

Comments
 (0)