Sylius icon indicating copy to clipboard operation
Sylius copied to clipboard

[Issue] Too many database calls during warmup cache

Open gabrielmustiere opened this issue 1 year ago • 0 comments

Sylius version affected: 1.12

Description
During cache:warmup and specifically during TemplateCacheWarmer, Sylius tries to connect to the database manytime by template file to load a channel to retrieve a theme.

There are long timeouts when the database is inaccessible, which is my case when I'm building the application with docker in a gitlab job.

Steps to reproduce
Cache clear when database inaccessible PhpStorm_2023-11-19 22-41-12@2x

gabrielmustiere avatar Nov 19 '23 21:11 gabrielmustiere