8000 Avoid running cache GC within completion processes · composer/composer@97c7ffa · GitHub
[go: up one dir, main page]

Skip to content

Commit 97c7ffa

Browse files
committed
Avoid running cache GC within completion processes
1 parent b6fb881 commit 97c7ffa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Composer/Cache.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,10 @@ public function gcIsNecessary()
248248
return false;
249249
}
250250

251+
if (Platform::isInputCompletionProcess()) {
252+
return false;
253+
}
254+
251255
return !random_int(0, 50);
252256
}
253257

0 commit comments

Comments
 (0)
0