love to get some help on this one as I'm stuck!
I have created some phtml files under app\design\frontend\mytheme\default\template\mytheme\
These phtml files pull data from static blocks in the backend using
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('my_static_block')->toHtml(); ?>
I then call the phtml files in my local.xml file e.g:
<catalog_product_view> <reference name="footer"> <block type="page/html" name="my.block" template="mytheme/myblock.phtml"/> </reference>
Now the problem is this:
When caching is off everything works as it should and the blocks only display on the pages it should.
As soon as I enable caching the blocks then display on every page, when it shouldn't.
Any help would be appreciated!