Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.6k
[TwigBundle] Usekernel.build_dir
to store the templates known at build time#54384
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
fb68b3c
to0bc3774
CompareUh oh!
There was an error while loading.Please reload this page.
src/Symfony/Bundle/TwigBundle/CacheWarmer/TemplateCacheWarmer.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Bundle/TwigBundle/CacheWarmer/TemplateCacheWarmer.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Bundle/TwigBundle/DependencyInjection/Configuration.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Very good idea.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Bundle/TwigBundle/CacheWarmer/TemplateCacheWarmer.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Bundle/TwigBundle/CacheWarmer/TemplateCacheWarmer.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
0dbdd9b
to40e485c
Compareshouldn't this dual cache setup be disabled when autoReload is enabled ? Otherwise, any template cached in the readonly cache won't be reloaded (as the cache never writes the new content) which will break the DX |
I don't think it needs to. Looking at the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I tested it on a project and got some functional feedback.
src/Symfony/Bundle/TwigBundle/DependencyInjection/TwigExtension.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Bundle/TwigBundle/CacheWarmer/TemplateCacheWarmer.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Tests are failing.
|
…uild timeSigned-off-by: Quentin Devos <4972091+Okhoshi@users.noreply.github.com>
Fixed, I didn't realise the tests were using a smaller kernel. |
@GromNaN@fabpot@nicolas-grekas@OskarStark Could we still get this merged in 7.3 ? |
Thank you@Okhoshi. |
532e408
intosymfony:7.3Uh oh!
There was an error while loading.Please reload this page.
…ache config (Okhoshi)This PR was merged into the 7.3 branch.Discussion----------[Twig] [TwigBundle] Describe the new behaviour of twig.cache configUpdate the description of the `twig.cache` config to follow the changes implemented insymfony/symfony#54384.Fixes#20948cc `@alexandre`-dauboisCommits-------8c5f22b [TwigBundle] Describe the new behaviour of twig.cache config
Uh oh!
There was an error while loading.Please reload this page.
Follow up to#50391, set up the Twig
TemplateCacheWarmer
to use thekernel.build_dir
instead ofkernel.cache_dir
. A new argument is added to its constructor to specify the directory to use for the cache.