I have heard this but I cannot confirm it. Does anyone know?
2 Answers
It is true, you can see it mentioned the Dev Docs too if you want extra confirmation :
To create an uncacheable page, mark any block on that page as uncacheable in the layout using cacheable="false".
You can see that on this page.
-
-
1@LM_Fielding Unless you want to purposefully stop the whole page from being cached then yeah I would avoid. If you need to prevent one block from being cached take a look at hole punching methods. Commented Mar 8, 2017 at 9:49
-
I'm aware of hole punching methods, but thank you for the great tip! That is the reason I'm asking. Commented Mar 8, 2017 at 12:31
Yes it does. Full page cache will not be used on that page. But block cache and the rest works.
-
1Of note, FPC is often responsible for the majority of caching performance gains, so thinking 'oh I'm just disabling one cache out of like 12' is usually a bad idea. Commented Feb 28, 2019 at 21:58