Search code examples
drupalpanels

Is it better to cache an element in the block/view or the panel?


I am creating a panel page that will pull in blocks from a view? I want to cache these blocks. So is it better to enable caching of that element in the panel or do it where it was created in the block/view page? Or does it matter?

FYI, There are other areas of the page that are too dynamic for me to cache the entire page using other methods


Solution

  • Go to the top level, to get the cached version faster. In this case, that would be the panel page.

    That would also cache the entire pane, instead of just caching the content of it, be it a block, a view or something else.