I believe I've found a very weird bug with symfony's cache system. I have the following application configuration files:
(App) apps/frontend/config/settings.yml:
all:
cache: on
(App) apps/frontend/config/cache.yml:
default:
enabled: on
with_layout: false
lifetime: 86400
(App) apps/frontend/config/view.yml:
default:
has_layout: on
layout: layout_111
(Module) apps/frontend/modules/some_module/config/view.yml:
all:
has_layout: on
layout: layout_21
Please note that I have told the framework to use layout_111 by default, at the application level. At the module level the layout setting gets replaced. This works perfectly, as it should, while cache is not used. Having the cache turned on, the following scenario happens:
1. Drop all cache (by physically deleting /cache/).
2. Open a page with layout_21 -> the page shows correctly, all components and partials come with blue cache boxes (as they get loaded for the first time).
3. Press F5 (refresh) -> Page reloads quickly (because of cache), every cache box is of yellow color (cached version), but the layout is the default one, specified for the whole application. Module level layout specification get ignored here.
I suppose this to be quite serious.