Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
frankenphp-symfony: call gc_collect_cycles() after handling request (#…
…142) Triggering the garbage collector after the request has been handled and when the worker may be idle prevents the garbage collection from being randomly done in the middle of the handling of a request (which delays the delivery of the HTTP response). Another option, that is done by Laravel Octone, is to trigger the GC when a configurable amount of memory has been consumed instead of after every request. I think this patch is good enough for FrankenPHP as usually many workers will be available.
- Loading branch information