Skip to content

symfony cache:warmup #1351

Discussion options

You must be logged in to vote

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

Symfony cache directory prepared in x ms.

If you don't see this message or it seems to not be working as expected, here are some possible reasons

  • You don't extend from the BrefKernel in your Symfony Kernel
  • You don't have APP_ENV=prod inside lambda
  • Your deployment artifact doesn't contain the var/cache folder (you can verify this by downloading the artifact from the AWS console)

Happy to help further if it doesn't lead anywhere 🙂

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by olivier-sabban
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants