Skip to content

[TwigBundle] Skip build dir warmup when auto-reload is enabled #60196

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

GromNaN
Copy link
Member

@GromNaN GromNaN commented Apr 10, 2025

Q A
Branch? 7.3
Bug fix? no
New feature? no
Deprecations? no
Issues -
License MIT

When the build dir is different from the cache dir, the twig cache warmer is called 2 times, once during build, and the second during cache warmup. In development, when auto-reload is enabled, warming the cache during the build of the container is not necessary. Skipping will save time in dev.

If #54384 is merged before 7.3, this PR is not necessary.

@Okhoshi
Copy link
Contributor

Okhoshi commented Apr 10, 2025

This problem is not specific to the TemplateCacheWarmer, so every other Optional CacheWarmer will have the same behavior, which is not so great IMHO.

@GromNaN
Copy link
Member Author

GromNaN commented Apr 10, 2025

Not really useful.

@GromNaN GromNaN closed this Apr 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants