Configure Lesti::FPC

in Performance Tags: MagentoperformanceredisSSH

Lesti::FPC is a FPC (Full Page Caching) module you can use to speed up the frontend of your shop. More information about this module can be found on the website of the developer of the module; Gordon Lesti. A tutorial on how it works is available on the page How does Lesti::FPC work . This module also works in combination with Redis.

This article will explain how to configure Lesti::FPC and use it on Hypernode. It is however recommended to first enable Redis Cache as your caching backend before proceeding with this tutorial.

NB: When you used the hypernode-importer and you were already using Lesti::FPC, you don’t have to follow this tutorial.

Download Lesti::FPC

    1. Go to your public folder; /data/web/public
    2. Use the following command to install the Lesti::FPC module on your shop:
      modman clone git://github.com/GordonLesti/Lesti_Fpc.git
      

Move the files to the correct folder

  1. Go to the .modman/Lesti_Fpc/app/etc folder and copy the fpc.xml.sample and rename it to fpc.xml .
  2. Move the fpc.xml file to the /public/app/etc folder.

Edit your fpc.xml file

  1. Open the file and delete everything between the <fpc> tags.
  2. In between the <fpc> tags, paste the following lines of code:
    <lifetime>86400</lifetime>
    <backend>Cm_Cache_Backend_Redis</backend>
    <backend_options>
        <server>redismaster</server>
        <port>6379</port>
        <persistent></persistent>
        <database>1</database>
        <password></password>
        <force_standalone>0</force_standalone>
        <connect_retries>1</connect_retries>
        <lifetimelimit>86400</lifetimelimit>
        <read_timeout>10</read_timeout>
        <compress_data>1</compress_data>
        <compress_tags>1</compress_tags>
        <compression_lib>gzip</compression_lib>
    </backend_options>  
  3. Enable FPC caching in your Magento backend.
  4. Flush your cache after making these adjustments:
    n98-magerun cache:flush
    

Warm your full page cache

To warm your full page cache, see the page about cache warming

 

1