Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
litespeed_wiki:cache:litemage_configuration [2015/07/23 18:38]
Michael Alegre
litespeed_wiki:cache:litemage_configuration [2015/07/27 14:47]
Michael Alegre removed
Line 106: Line 106:
   * For LiteMage to work correctly, you must have both "​Configuration"​ and "​Layouts"​ enabled under System -> Cache Management in the Magento Admin Panel. If you are using Magento Enterprise, you must also disable "Page Cache"​.   * For LiteMage to work correctly, you must have both "​Configuration"​ and "​Layouts"​ enabled under System -> Cache Management in the Magento Admin Panel. If you are using Magento Enterprise, you must also disable "Page Cache"​.
 {{ :​litespeed_wiki:​cache:​magento-cache-management-li-80-e.png?​nolink |}} {{ :​litespeed_wiki:​cache:​magento-cache-management-li-80-e.png?​nolink |}}
- 
  
 ====== LiteMage Extension For Magento Configuration ===== ====== LiteMage Extension For Magento Configuration =====
  
   * LiteMage'​s default configuration should be suitable for testing. ​   * LiteMage'​s default configuration should be suitable for testing. ​
-  * Please ​read the comments for each configuration option before adjusting them.  +  * Always ​read the comments for each configuration option before adjusting them.  
-  * Detailed notes on certain settings are also provided in the "Notes on Specific Configuration Settings"​ section below.+  * Detailed notes on certain settings are provided in the "Notes on Specific Configuration Settings"​ section below
 + 
 +===== When Changing LiteMage Configuration ===== 
 + 
 +**__In The Magento Admin Panel__**\\ 
 + 
 +After making any changes to LiteMage through the Magento Admin Panel, always Flush the LiteMage cache by navigating to System -> Cache Management and, under "​LiteMage Cache Management, clicking "Flush LiteMage Cache"​. 
 + 
 +**__In The "​config.xml"​ File__**\\ 
 + 
 +After Making any changes to LiteMage through it's "​config.xml"​ file, you must do the following:​ 
 + 
 +  - From the Magento Admin Panel, navigate to System -> Cache Management. 
 +  - Check the box next to "​Configuration"​ and check that "​Refresh"​ is selected in the drop-down menu on the top right before clicking "​Submit"​. 
 +  - Near the bottom of the page under "​LiteMage Cache Management",​ click "Flush LiteMage Cache"​. 
 + 
 +===== Cache Storage ===== 
 + 
 +Each Magento installation requires a unique cache storage. If your server hosts multiple Magento installations,​ you must set up different cache storage paths for each installation. Follow the steps below to do so: 
 +    * If you are using a LiteSpeed-native virtual hosts, different storage paths can be set in the WebAdmin -> Configuration -> Virtual Hosts -> "​Your_Virtual_Host"​ -> Cache ->​Storage Path setting. 
 +    * If you are using Apache configuration files, different cache storage paths can be set using the CacheRoot directive in your Apache virtual host configurations as follows (This must be put in the virtual host include file, "​.htaccess"​ cannot be used.):  
 + 
 +  <​IfModule Litespeed>​ 
 +  CacheRoot /​path/​to/​vhost/​cache/​root/​ 
 +  </​IfModule>​ 
 +\\ 
 +**For shared-hosting providers:​** It is also recommended to set a different cache storage for each user under their home directories. This gives each user full control of their cache directories,​ enabling them to do things like deleting the whole cache directory for example. To do this, include the following in the Apache config file for each virtual host:    
 +  <​IfModule LiteSpeed>​ 
 +  CacheRoot litemage_cache 
 +  </​IfModule>​ 
 +LiteSpeed will assume the home directory by default, creating a cache directory in each user's home directory called "​litemage_cache"​. For example: /​home/​user1/​litemage_cache. 
 + 
 +**For shared-hosting providers also using cPanel:** You can instead place the above CacheRoot section in an Apache include file (such as litemage.conf) under /​usr/​local/​apache/​conf/​userdata.
  
 ===== Notes On Specific Configuration Settings ===== ===== Notes On Specific Configuration Settings =====
Line 121: Line 152:
   * **Track Recently Viewed Products:** Recommend setting to "​No"​ if your template does not show last viewed items. If set to "​Yes";​ every time a product page is viewed it must be recorded in Magento'​s backend database, initializing the Magento framework and greatly slowing down the site. If you would like to know how to disable the "​recently viewed products"​ block from your template, try this guide from [[http://​www.templatemonster.com/​help/​magento-how-to-remove-recently-viewed-products-block.html|TemplateMonster]]   * **Track Recently Viewed Products:** Recommend setting to "​No"​ if your template does not show last viewed items. If set to "​Yes";​ every time a product page is viewed it must be recorded in Magento'​s backend database, initializing the Magento framework and greatly slowing down the site. If you would like to know how to disable the "​recently viewed products"​ block from your template, try this guide from [[http://​www.templatemonster.com/​help/​magento-how-to-remove-recently-viewed-products-block.html|TemplateMonster]]
   * **Flush LiteMage Cache:** The Flush LiteMage Cache button (under System -> Cache Management) flushes all public and private caches. Cache Warm Up (if enabled) will also be started automatically after the cache is flushed.   * **Flush LiteMage Cache:** The Flush LiteMage Cache button (under System -> Cache Management) flushes all public and private caches. Cache Warm Up (if enabled) will also be started automatically after the cache is flushed.
-  * Each Magento installation requires a unique cache storage. If your server hosts multiple Magento installations,​ you must set up different cache storage paths for each installation. Follow the steps below to do so: 
-    * If you are using LiteSpeed-native virtual hosts, different storage paths can be set in the WebAdmin -> Configuration -> Virtual Hosts -> your virtual host -> Cache ->​Storage Path setting. 
-    * If you are using Apache configuration files, different cache storage paths can be set using the CacheRoot directive in your Apache virtual host configurations as follows (This must be put in the virtual host include file, "​.htaccess"​ cannot be used.): ​ 
- 
- 
-  <​IfModule Litespeed>​ 
-  CacheRoot /​path/​to/​vhost/​cache/​root/​ 
-  </​IfModule>​