I'm would like to use lesti:FPC with a module I developed.
To enable SEO friendly urls ALL requests to the module are sent to the module index action, and there a template is dynamically loaded. How can I make lesti:FPC work under this scenario?
On the module layout file (../layout/addon.xml) I have:
<block type="addon/index" name="addon_index" template="addon/index.phtml"/>
On the module indexAction I have:
if($condition)
{
$this->getLayout()->getBlock('addon_index')->setTemplate('addon/a.phtml');
}
else
{
$this->getLayout()->getBlock('addon_index')->setTemplate('addon/b.phtml');
}
Would adding 'addon_index' to the lesti:FPC layout-handles be enough to get my module pages cached?
And finally, here is a template at.phtml code:
echo $this->getChildHtml('child');
Hope it will help you.