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
Next revision Both sides next revision
litespeed_wiki:cache:no-plugin-prestashop [2017/05/05 20:41]
Jackson Zhang [Rewrite Rules]
litespeed_wiki:cache:no-plugin-prestashop [2017/05/05 21:01]
Jackson Zhang
Line 27: Line 27:
   ########## End - Litespeed cache   ########## End - Litespeed cache
   ​   ​
-**Note1:​** ​ The **"​CacheDisable public /"** directive is used to help protect against globally enabled caching and is optional. Instead, the server'​s global cache settings should be checked to ensure that cache is not enabled globally. Do not use **"​CacheEnable public /"** here as it will enable caching for all URLs belonging to this virtual host, including admin pages.+**Note1:​** ​ The **"​CacheDisable public /"** directive is used to help protect against globally enabled caching and is optional. Instead, the server'​s global cache settings should be checked to ensure that cache is not enabled globally. ​**Do NOT** use **"​CacheEnable public /"** here as it will enable caching for all URLs belonging to this virtual host, including admin pages.
   ​   ​
 **Note2:** Where "​your_domain_name.com"​ is the web address of your PrestaShop site and "​your_admin_folder"​ is the PrestaShop administration folder name specified during installation. Replace them with your real domain name and admin folder. **Note2:** Where "​your_domain_name.com"​ is the web address of your PrestaShop site and "​your_admin_folder"​ is the PrestaShop administration folder name specified during installation. Replace them with your real domain name and admin folder.
Line 42: Line 42:
   https://​www.your_domain_name.com/​about?​some_other_query_string&​nocache   https://​www.your_domain_name.com/​about?​some_other_query_string&​nocache
  
-===== Discussion ​===== +===== Verify Cache Setup =====
-__**Adding a cron job to delete outdated cache files**__+
  
-While optional, it is a good idea to clear out old cache files that are past the set **Time To Live (TTL)**. To do this enter the following in /​etc/​crontab+Please verify ​to see if you can see "​X-LiteSpeed-Cache:​ hit" by following [[litespeed_wiki:​cache:​no-plugin-setup-guidline#​verify_that_pages_are_served_from_the_cache|this wiki]].
  
-  /10 * * * * root find /​tmp/​diskcache -type f -mmin +8 -delete 2>/​dev/​null+===== Deleting Outdated Cache Files Using A Cron Job =====
  
-**Note:** This cron job deletes cached files that are more than 8 minutes old every 10 minutes. Since the cache TTL is set at 120 seconds (2 minutes), it is safe to delete these files that are way passed TTL.+Please refer to [[litespeed_wiki:cache:​no-plugin-setup-guidline#​deleting_outdated_cache_files_using_a_cron_job|this wiki]].
  • Admin
  • Last modified: 2019/01/23 15:20
  • by Lisa Clarke