Sylius
Sylius copied to clipboard
[Issue] Too many database calls during warmup cache
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