User Guide Author: Version: Website: Support: Johann Reinke 2.0 http://www.bubbleshop.net bubblecode.net@gmail.com
Table of Contents 1 Introducing Bubble Full Page Cache... 3 1.1 Features... 3 1.2 Compatibility... 3 2 Installation... 3 2.1 Instructions... 3 2.2 Multiple hosts... 4 2.3 APC... 4 3 Customization (for developers)... 5 3.1 Accessing the configuration in Magento admin panel... 5 3.2 Cacheable Actions... 5 4 Cache generation methods... 6 4.1 From Magento admin (recommended)... 6 4.2 wget command... 8 4.3 PHP script... 8 2
1 Introducing Bubble Full Page Cache 1.1 Features The module Full Page Cache boosts your Magento store drastically by adding a low level caching system that bypass the all Magento stack on each request. Here are the main features: 90% faster than default Magento caches Drastically decreases pages load time Caches by default all categories, products, catalog search, sitemaps and CMS pages Increases SEO rating Fully compatible with multi domains, multi stores, multi currencies, multi languages, multi customer groups No Varnish or any reverse proxy needed Cache management in Magento admin panel Easy installation in 5 minutes Easy configuration (works well by default) Fully compatible with default Magento caches, Magento compilation, APC Possibility to pre- warm cache from Magento admin or PHP script (can be added as cron) 100% open source, no PHP encoder used 1.2 Compatibility Bubble CMS Tree has been tested successfully on the following Magento versions: Magento Community Edition 1.7.x, 1.8.x Magento Enterprise 1.12.x, 1.13.x 2 Installation 2.1 Instructions Backup your existing database Download and unzip extension in your Magento root folder Clear cache via System > Cache Management > Flush Magento Cache Enable Full Page Caching in System > Cache Management Finally, modify your index.php file located in Magento root folder so it looks like this: Important: if you have defined a default store view with a code different than default, you have to add another line that defines the default store view like below: 3
2.2 Multiple hosts If you have defined several hosts on a same Magento installation, you have to configure what is the default store for each host in top of file index.php. Here is an example for a french store view with a specific host: 2.3 APC If you are using APC as an opcode cache, you have to be aware of the configuration. Check if the directive apc.stat is set to Off (or zero). If it is, you have to define the full page cache directory as excluded by adding the directive: apc.filters="-var/fpc/.*" 4
3 Customization (for developers) 3.1 Accessing the configuration in Magento admin panel 3.2 Cacheable Actions 5
The default cached pages should be enough for improving performances of your Magento store. But you can add your own pages easily. You just have to follow the syntax <module>/<controller>/<action>. Here is an example: If you don t want an existing page to be cached, you can disable it by clicking the Edit link, see result below: 4 Cache generation methods 4.1 From Magento admin (recommended) Go to System > Configuration > Full Page Cache and you will see the Store View tab by default: 6
Then generate cache for a specific store view: All URLs of the store will be called and the cache will be generated: 7
4.2 wget command Generate cache via wget command is the most powerful method but it is also the longest because it generates the cache for all the pages. Here is an example of how to generate cache for all the pages of the default store view: wget http://www.mystore.com -r --delete-after -nd -R png,jpeg,jpg,gif,zip,txt,pdf -X "/customer,/checkout,/catalog,/wishlist,/tag,/sales" --cookies=off --header "Cookie: store=default" You are free to customize this command, for example by accepting only.html files: wget http://www.mystore.com -r --delete-after -nd A html --cookies=off --header "Cookie: store=default" 4.3 PHP script The module comes with a PHP script that allows you to call all the URLs of a specific store. For example, you can generate cache of the default store view with the following command: php shell/fpc.php --generate --store default Another example for french store view: php shell/fpc.php --generate --store french 8