Reviewed & tested by the community
Project:
Drupal core
Version:
main
Component:
CLI system
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
1 Oct 2026 at 22:50 UTC
Updated:
28 Oct 2026 at 14:33 UTC
Jump to comment: Most recent
Comments
Comment #2
moshe weitzman commentedComment #4
catchDoes the core cli have a way to fork processes? If it does, then we could try to execute each prewarmable thing in parallel so that they all happen at the same time (and hence finish as soon as possible, ideally before any requests actually come in). Even if this is possible, could happen in a follow-up.
Comment #5
moshe weitzman commentedGoogle suggests something like below which seems simple enough. I would personally leave it for Contrib or a followup, but I'll change it if anyone really wants.
Comment #6
moshe weitzman commentedOh, that approach only works if each process runs a CLI command like
dr php:eval "FieldDfinintion:warm()"and so on. We don't have a php:eval command yet.Comment #7
moshe weitzman commentedComment #8
smustgrave commentedOkay ran this locally
First I did a drush cr and checked the cache_discovery table which was at 42 after clear
Ran
ddev exec dr cache:warmChecked the table again and it was 90
So definitely appears to be working. Referencing other test coverage for cli commands this seems in par with those.
LGTM.