Branch | Build Status | Coverage |
---|---|---|
Master | ||
Develop |
Lesti_Fpc 1.4.4
- PHP 5.4 or higher
- Magento CE1.5.x-1.9.x
-
Install with modman:
$ modman clone https://github.com/GordonLesti/Lesti_Fpc.git
-
Install with Magento Composer Installer and add a requirement
gordonlesti/lesti_fpc
{ "require": { "gordonlesti/lesti_fpc": "*" } }
-
Install manually:
- Download latest version here
- Unzip
- Copy
app
directory into Magento
You can now make your modules compatible with Lesti_Fpc by injecting configuration to it. There is no longer a need to manually configure handles and parameters in admin.
See this example, configuration goes in your config.xml
<config>
<!-- // your modules normal config // -->
<default>
<lesti_fpc>
<cache_actions>
<cms_index_index />
<right.reports.product.viewed />
</cache_actions>
<miss_uri_params>
<limit><![CDATA[limit=/^([0-9]+)|(all)$/"]]></limit>
</miss_uri_params>
</lesti_fpc>
</default>
</config>
The keys used have the same name as the fields in admin, possible keys are:
- cache_actions
- bypass_handles
- uri_params
- refresh_actions
- miss_uri_params
- dynamic_blocks
- lazy_blocks
If a tag does not contain a value (like cms_index_index
above), the tagname is used. If it does contain a value, that value is used (like limit
above).