1
0
Fork 0

Avoid running cache GC within completion processes

pull/10320/head
Jordi Boggiano 2022-05-13 10:35:39 +02:00
parent b52053893c
commit eac83aad5c
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 4 additions and 0 deletions

View File

@ -248,6 +248,10 @@ class Cache
return false; return false;
} }
if (Platform::isInputCompletionProcess()) {
return false;
}
return !random_int(0, 50); return !random_int(0, 50);
} }