Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Performance can be increased significantly by firing multiple concurrent requests. With my provided patch I could decrease execution time locally by ~2/3.
Comment | File | Size | Author |
---|---|---|---|
#15 | 3152000-15.patch | 7.02 KB | arthur_lorenz |
Comments
Comment #3
arthur_lorenz CreditAttribution: arthur_lorenz at Aperto GmbH - An IBM Company commentedComment #4
arthur_lorenz CreditAttribution: arthur_lorenz at Aperto GmbH - An IBM Company commentedFixed some CS issues, added default config and imroved naming. Unfortunately I can't get the tests to run properly on my local environment right now, so let's hope tests are green :D
Comment #5
arthur_lorenz CreditAttribution: arthur_lorenz at Aperto GmbH - An IBM Company commentedComment #6
e0ipsoThis is awesome. I have been meaning to address this for a while. I wonder if we can remove the TODO item in favor of creating a ticket, or fixing it here. I have second thoughts about making the assync feature configurable, maybe we should make it always async if that is available to all Drupal installs.
Back to needs work to get clarification about the questions above.
Comment #7
arthur_lorenz CreditAttribution: arthur_lorenz at 1xINTERNET commentedAlright, I made the async requests mandatory, removed the TODO (feel free to create a ticket for it :)) and added a message after successful cache warming.
Comment #9
arthur_lorenz CreditAttribution: arthur_lorenz at 1xINTERNET commentedOh, I used a function that's only available for php >= 7.3. Fixed that
Comment #11
e0ipsoAny guesses on why tests are failing?
Comment #12
arthur_lorenz CreditAttribution: arthur_lorenz at 1xINTERNET commentedYes, that was caused by a missing onReject callback. Fixed this and also fixed some CS issues.
Comment #13
arthur_lorenz CreditAttribution: arthur_lorenz at 1xINTERNET commentedWhoopsie, deleted composer.json...
Comment #14
e0ipsoI really like this change. My only question is weather or not we want to drop the Make asyc requests checkbox, and only allow configuring the number of parallel requests.
I will let my co-maintainer decide on that sense, unless there is a technical point I am missing that you Arthur want to clarify in that regard.
Thanks again for this awesome patch!!
Comment #15
arthur_lorenz CreditAttribution: arthur_lorenz at 1xINTERNET commentedNo there is no technical reason for not making async requests mandatory. I just wasn't sure how positive your reception to this change will be, so I decided to go with a smooth introduction of this feature :D
Updated the patch to get rid of that option completely.
Comment #16
e0ipsoThis looks good. There is a debug log statement left by accident that I may remove on commit.
Comment #17
e0ipsoThis was merged to the new release with minor changes.