我想将 lesti:FPC 与我开发的模块一起使用。
为了启用对 SEO 友好的 url,对模块的所有请求都被发送到模块索引操作,并且动态加载了一个模板。我怎样才能让 lesti:FPC 在这种情况下工作?
在模块布局文件(../layout/addon.xml)上,我有:
<block type="addon/index" name="addon_index" template="addon/index.phtml"/>
在模块 indexAction 我有:
if($condition)
{
$this->getLayout()->getBlock('addon_index')->setTemplate('addon/a.phtml');
}
else
{
$this->getLayout()->getBlock('addon_index')->setTemplate('addon/b.phtml');
}
将“addon_index”添加到 lesti:FPC 布局句柄是否足以缓存我的模块页面?