I tried excluding page/html/header.phtml from caching with Lesti FPC, but failed so far. How can I exclude that template file?
Magento 1.9.3
Always read the documentation first
You cannot exclude a specific phtml file from the cache. What you can do is exclude a layout block by it's name.
Once you have the name of the layout you can set it as a lazy or dynamic blocks. More on that here
The documentation also includes a handy little post for getting the name of your block in Magento source
here's what you need to do:
<?php echo $this->getNameInLayout(); ?>
header
$this->getChildHtml('topMenu')
in header.phtml which shows the page menu. Whenever I put that to the dynamic blocks and enable the FPC, the menu is crashed. Any idea what might be wrong?