Full Page Cache Bolt Full Page Cache

Installing Bolt Full Page Cache

You can install the Bolt extension like any other extension. To find out more, check the installing a Magento extension guide. After you have the extension installed, come back here so we can configure it to run just right for your site.

Configuration

With the extension installed, we need to make a small modification to Magento's index.php. Open index.php (this will be in your Magento root) using FTP and find the Mage::run line (it's right near the bottom). Right above this line, add the following code:

@include_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'bolt.php');

This will include Bolt before Magento is started, which is what allows Bolt to produce such amazing speeds (most FPC extensions still load Magento and connect to the database, making them much slower).

Finally, go to System > Cache Management in the Magento Admin and enable the Bolt cache item. Bolt will now be running on your site.

Multi-Store

Bolt fully supports Magento multi-store and you do not have to make any extra configuration changes for Bolt to run in a multi-store environment. Bolt uses the global variables $_SERVER['MAGE_RUN_CODE'] and $_SERVER['MAGE_RUN_TYPE'], so ensure that these are correctly set for each store. If you use a switch or if/else statement in index PHP to load the correct store based on the current URL, ensure that these global variables are updated.

Cache & Session Storage Types

Bolt will automatically determine what session and cache storage method you are using. Bolt supports the filesystem (Magento default), Redis and Memcache. You do not need to configure Bolt to use any of these as Bolt will automatically get the correct settings from your Magento configuration.

Bolt does not support the 'db' session storage type unless this is used with Redis. If you are using the 'db' storage type but aren't using Redis, open the app/etc/local.xml file and change 'db' to 'files' and refresh your cache.

Hole Punch

The Hole Punch feature in Bolt comes ready configured for 95% of Magento installations. If you want to customise this in anyway, check the Hole Punching in Bolt article.

Post your comment

FishPig Ltd