Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision Last revision Both sides next revision | ||
litespeed_wiki:cache:lscps:troubleshooting:messy-layout-after-clear-smarty-cache [2020/06/30 18:26] Jackson Zhang created |
litespeed_wiki:cache:lscps:troubleshooting:messy-layout-after-clear-smarty-cache [2020/07/01 16:41] Lisa Clarke |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Smarty cache or LiteSpeed cache, which one to clear to avoid messy layout? ====== | + | ====== Clear Both Smarty Cache and LiteSpeed Cache ====== |
- | When a user talks about Prestashop cache or "Clear Cache", it could mean Prestashop internal smarty cache and it doesn't mean LiteSpeed cache. When you talk about "Clear cache" or "Purge cache", you should specify which cache you are referring to avoid confusing. | + | There is sometimes confusion, when it comes to PrestaShop caching. Whenever possible, be specific about which cache should be cleared. The phrase "clear the cache" could mean "clear PrestaShop's internal Smarty Cache," or it could mean "flush LiteSpeed Cache." Maybe it means both. |
- | Prestashop Smarty cache is under ** Configure -> Advanced Parameters -> Performance -> Smarty **. There is a **Clear cache** on the top which is to clear smarty cache. When something has been modified, especially your theme changes, you will need to clear smarty cache. | + | If you make changes to your theme, please remember to clear //both// Smarty Cache and LiteSpeed Cache. Failure to clear both caches may lead to messy layout problems. |
+ | |||
+ | {{ :litespeed_wiki:cache:lscps:troubleshooting:prestshop-litespeed-cache-plugin-flushcache-messy-layout.png?800 |}} | ||
+ | |||
+ | ===== Clearing Smarty Cache ===== | ||
+ | PrestaShop Smarty Cache can be found on the ** Configure > Advanced Parameters > Performance > Smarty** menu. The **Clear cache** button on the top of the page clears Smarty Cache. | ||
+ | |||
+ | When your shop has been modified, especially your theme, you will need to clear Smarty Cache. | ||
{{ :litespeed_wiki:cache:lscps:troubleshooting:prestashop-smarty-cache.png?800 |}} | {{ :litespeed_wiki:cache:lscps:troubleshooting:prestashop-smarty-cache.png?800 |}} | ||
- | When LiteSpeed cache module installed, you can locate it from ** IMPROVE -> Module Manager -> LiteSpeed Cache Plugin**, once you click "Configure", you will see all LiteSpeed Cache settings. | + | ===== Clearing LiteSpeed Cache ===== |
+ | When the LiteSpeed Cache module is installed, it can be found on the ** IMPROVE > Module Manager > LiteSpeed Cache Plugin** menu. Click **Configure** to see all of the available LiteSpeed Cache settings. | ||
+ | |||
{{ :litespeed_wiki:cache:lscps:troubleshooting:prestshop-litespeed-cache-plugin-module.png?800 |}} | {{ :litespeed_wiki:cache:lscps:troubleshooting:prestshop-litespeed-cache-plugin-module.png?800 |}} | ||
- | {{ :litespeed_wiki:cache:lscps:troubleshooting:prestshop-litespeed-cache-plugin-flushcache.png?800 |}} | + | The ***Flush All PrestaShop Pages** button on the top of the page clears LiteSpeed Cache. |
- | On the top of **LiteSpeed Cache Configuration**, there is a button called **Flush All PrestaShop Pages**, which is to clear LiteSpeed cache. | + | {{ :litespeed_wiki:cache:lscps:troubleshooting:prestshop-litespeed-cache-plugin-flushcache.png?800 |}} |
- | + | ||
- | When you have made some changes in your theme, you might clear smarty cache but did not clear LiteSpeed cache, which may cause something wired. | + | |
- | {{ :litespeed_wiki:cache:lscps:troubleshooting:prestshop-litespeed-cache-plugin-flushcache-messy-layout.png?800 |}} | + | |
- | You will need to clear both smarty cache and LiteSpeed cache to avoid messy layout problems. |