File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -101,17 +101,15 @@ public function loadBackendOverviewData(RedisInstanceIdentifier $redisInstanceId
101101 private function calculateReleaseSize (RedisInstanceIdentifier $ redisInstanceIdentifier , ContentReleaseIdentifier $ contentReleaseIdentifier )
102102 {
103103 $ redis = $ this ->redisClientManager ->getRedis ($ redisInstanceIdentifier );
104- $ allKeys = $ redis ->keys ('* ' );
104+ $ allKeys = $ redis ->keys ('contentStore: ' . $ contentReleaseIdentifier -> getIdentifier () . ' : * ' );
105105 $ size = 0 ;
106106
107107 foreach ($ allKeys as $ key ) {
108- if (str_contains ($ key , $ contentReleaseIdentifier ->getIdentifier ())) {
109- $ size += $ redis ->rawCommand ('memory ' , 'usage ' , $ key );
110- }
108+ $ size += $ redis ->rawCommand ('memory ' , 'usage ' , $ key );
111109 }
112110
113111 // bytes are returned, convert to megabytes
114- return round ($ size / 100000 , 2 );
112+ return round ($ size / 1000000 , 2 );
115113 }
116114
117115 public function loadDetailsData (ContentReleaseIdentifier $ contentReleaseIdentifier , RedisInstanceIdentifier $ redisInstanceIdentifier ): ContentReleaseDetails
You can’t perform that action at this time.
0 commit comments