Skip to content

Update Docker command to disable scripts during project creation#256

Open
bluvulture wants to merge 1 commit into2026.xfrom
bluvulture-patch-1
Open

Update Docker command to disable scripts during project creation#256
bluvulture wants to merge 1 commit into2026.xfrom
bluvulture-patch-1

Conversation

@bluvulture
Copy link
Copy Markdown
Contributor

@bluvulture bluvulture commented Mar 27, 2026

Since it has a clear:cache which requires DB and during creation script is not available, adding --no-scripts

@bluvulture bluvulture requested a review from mcop1 March 27, 2026 09:20
@yariksheptykin
Copy link
Copy Markdown
Contributor

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 mcop1 modified the milestones: 2026.1.0, 2026.1.1 Apr 10, 2026
Copy link
Copy Markdown
Contributor

@mcop1 mcop1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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.

@jdreesen
Copy link
Copy Markdown
Contributor

But why does clearing the Symfony cache need a database connection at all? That doesn't seem right!

@mcop1
Copy link
Copy Markdown
Contributor

mcop1 commented Apr 10, 2026

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

@jdreesen
Copy link
Copy Markdown
Contributor

But cache:clear should only clear Symfony's System Cache which is local (var/cache/) and thus should not need any database connection (note: while it is technically possible to reconfigure the system cache, Symfony advises against it).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants