6
2
Çatalla 0
şunun yansıması https://github.com/friendica/friendica eşitlenme: 2025-09-06 21:38:13 +02:00

code optimization

Bu işleme şunda yer alıyor:
Philipp Holzer 2019-09-26 18:14:36 +02:00
ebeveyn 49e812f3d3
işleme dc73117a62
Veri tabanında bu imza için bilinen anahtar bulunamadı
GPG Anahtar Kimliği: D8365C3D36B77D90

Dosyayı Görüntüle

@ -44,16 +44,14 @@ trait TraitMemcacheCommand
foreach ($lines as $line) {
if (preg_match("/STAT items:([\d]+):number ([\d]+)/", $line, $matches)) {
if (preg_match("/STAT items:([\d]+):number ([\d]+)/", $line, $matches) &&
isset($matches[1]) &&
!in_array($matches[1], $keys)) {
if (isset($matches[1])) {
if (!in_array($matches[1], $keys)) {
$slabs[] = $matches[1];
$string = $this->sendMemcacheCommand("stats cachedump " . $matches[1] . " " . $matches[2]);
preg_match_all("/ITEM (.*?) /", $string, $matches);
$keys = array_merge($keys, $matches[1]);
}
}
$slabs[] = $matches[1];
$string = $this->sendMemcacheCommand("stats cachedump " . $matches[1] . " " . $matches[2]);
preg_match_all("/ITEM (.*?) /", $string, $matches);
$keys = array_merge($keys, $matches[1]);
}
}
@ -83,7 +81,7 @@ trait TraitMemcacheCommand
fwrite($s, $command . "\r\n");
$buf = '';
while ((!feof($s))) {
while (!feof($s)) {
$buf .= fgets($s, 256);