symfony cache:warmup #1351
-
Could you please help me to understand how correctly warmup my symfony cache ? Bref documentation tell us to warmup cache before deploying. This command will generate var/cache/prod/ directory Even if I submit my var/cache/prod directory in serverless artifact I still have 5sec TTFB (only on cold start - symfony hello world) My questions :
Many blogs discuss about this topic but they don't go in depth and just overview the solution. The documentation on this subject is insufficient. It would be very nice to have a dedicated section here : https://bref.sh/docs/frameworks/symfony.html#using-cache By the way, thank you for this fantastic project. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi, When using the Symfony Bridge and extending from the BrefKernel, your cache folder from If that is the case, you should see in your logs
If you don't see this message or it seems to not be working as expected, here are some possible reasons
Happy to help further if it doesn't lead anywhere 🙂 |
Beta Was this translation helpful? Give feedback.
Hi,
When using the Symfony Bridge and extending from the BrefKernel, your cache folder from
var/cache/prod
should be copied to/tmp
and this should greatly reduce the cold start time you are seeing.If that is the case, you should see in your logs
If you don't see this message or it seems to not be working as expected, here are some possible reasons
APP_ENV=prod
inside lambdaHappy to help further if it doesn't lead anywhere 🙂