Update Docker command to disable scripts during project creation#256
Update Docker command to disable scripts during project creation#256bluvulture wants to merge 1 commit into2026.xfrom
Conversation
|
Interesting. Why does clear:cache require a database connection? Isn't it mostly about building symfony DI cache? Why do we need a DB lookup for this? |
mcop1
left a comment
There was a problem hiding this comment.
@bluvulture I think the real culprit is here https://github.com/pimcore/skeleton/blob/2026.x/composer.json#L45-L48 - post install script triggers cache:clear, which then needs the db connection.
Let´s talk about that again. For now, I moved it to 2026.1.1.
|
But why does clearing the Symfony cache need a database connection at all? That doesn't seem right! |
Without digging deeper into that and having a quick look only: If there is no custom cache configured, Pimcore uses doctrine as fallback, therefore a db connection is required -> https://github.com/pimcore/pimcore/blob/c58c038331aa2bbc0bc7a4ead6b184dadba92b10/doc/08_Development_Details/03_Cache/README.md#L23 |
|
But |
Since it has a
clear:cachewhich requires DB and during creation script is not available, adding--no-scripts