File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed
Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -1779,18 +1779,10 @@ function ( $keys ) {
17791779 * @return string
17801780 */
17811781 public function build_key ( $ key , $ group = 'default ' ) {
1782- static $ keys = [];
1783-
17841782 if ( empty ( $ group ) ) {
17851783 $ group = 'default ' ;
17861784 }
17871785
1788- $ key_index = "{$ key }: {$ group }" ;
1789-
1790- if ( isset ( $ keys [ $ key_index ] ) ) {
1791- return $ keys [ $ key_index ];
1792- }
1793-
17941786 $ salt = defined ( 'WP_REDIS_PREFIX ' ) ? trim ( WP_REDIS_PREFIX ) : '' ;
17951787 $ prefix = $ this ->is_global_group ( $ group ) ? $ this ->global_prefix : $ this ->blog_prefix ;
17961788
@@ -1799,7 +1791,7 @@ public function build_key( $key, $group = 'default' ) {
17991791
18001792 $ prefix = trim ( $ prefix , '_-:$ ' );
18011793
1802- return $ keys [ $ key_index ] = "{$ salt }{$ prefix }: {$ group }: {$ key }" ;
1794+ return "{$ salt }{$ prefix }: {$ group }: {$ key }" ;
18031795 }
18041796
18051797 /**
You can’t perform that action at this time.
0 commit comments