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 Both sides next revision
litespeed_wiki:cache:lscjoomla:crawler [2020/01/20 19:42]
Jackson Zhang [Pre-requirement for crawler]
litespeed_wiki:cache:lscjoomla:crawler [2020/01/22 22:25]
Joshua Reynolds Proofreading
Line 1: Line 1:
-====== How to setup crawler cron job for LSCJoomla ======+====== How to Set Up Crawler Cron Job for LSCJoomla ======
  
-===== Crawler ​funtion===== +===== Crawler ​Function===== 
-In the latest LSCJoomla, it provides ​an crawler function at **Advancded ​-> Web interface to rebuild all LiteSpeed Cache**:+The latest LSCJoomla provides ​crawler function at **Advanced ​-> Web interface to rebuild all LiteSpeed Cache**:
  
 {{ :​litespeed_wiki:​cache:​lscjoomla:​lscache-joomla-crawler-1.png?​800 |}} {{ :​litespeed_wiki:​cache:​lscjoomla:​lscache-joomla-crawler-1.png?​800 |}}
Line 8: Line 8:
   Web interface to rebuild all LiteSpeed Cache: https://​yourdomain.com/​index.php?​option=com_lscache&​recache=5dcfad26ad657984064c731ee774a57f   Web interface to rebuild all LiteSpeed Cache: https://​yourdomain.com/​index.php?​option=com_lscache&​recache=5dcfad26ad657984064c731ee774a57f
  
-===== Pre-requirement ​for crawler ​===== +===== Prerequisite ​for Crawler ​===== 
-To run the above crawler, your ''​curl_exec''​ cannot be disabled in your php.ini ​setting. Also you will need to [[litespeed_wiki:​cache:​lscwp:​configuration:​enabling_the_crawler|enable crawler feature on LSWS]] which is most likely disabled on shared hosting server by default.+To run the above crawler, your ''​curl_exec''​ cannot be disabled in your ''​php.ini''​ settings. Also you will need to [[litespeed_wiki:​cache:​lscwp:​configuration:​enabling_the_crawler|enable crawler feature on LSWS]] which is most likely disabled on shared hosting server by default.
  
-If ''​curl_exec''​ was disabled from php.ini, you may see similar error like:+If ''​curl_exec''​ was disabled from ''​php.ini''​, you may see similar error like:
   Warning: curl_exec() has been disabled for security reasons in /​home/​joomla/​public_html/​plugins/​system/​lscache/​lscache.php on line 1564   Warning: curl_exec() has been disabled for security reasons in /​home/​joomla/​public_html/​plugins/​system/​lscache/​lscache.php on line 1564
  
Line 19: Line 19:
 You can click ''​Web interface to rebuild all LiteSpeed Cache link''​ to run the crawler manually. It will only run once until completion. ​ You can click ''​Web interface to rebuild all LiteSpeed Cache link''​ to run the crawler manually. It will only run once until completion. ​
  
-===== Run crawler ​as cron job =====+===== Run Crawler ​as Cron Job =====
  
-To setup crawler as a cron job, you can simply wget the cachelink URL (please replace the URL with your own value):  ​+To setup crawler as a cron job, you can simply ​use wget to retrieve ​the cachelink URL (please replace the URL with your own value):  ​
   wget https://​yourdomain.com/​index.php?​option=com_lscache&​recache=5dcfad26ad657984064c731ee774a57f   wget https://​yourdomain.com/​index.php?​option=com_lscache&​recache=5dcfad26ad657984064c731ee774a57f
  
Line 27: Line 27:
   0 0 * * * wget wget https://​yourdomain.com/​index.php?​option=com_lscache&​recache=5dcfad26ad657984064c731ee774a57  ​   0 0 * * * wget wget https://​yourdomain.com/​index.php?​option=com_lscache&​recache=5dcfad26ad657984064c731ee774a57  ​
  
-===== How to keep the page cached most of the time ===== +===== How to Keep the Page Cached More Often ===== 
-The ''​Homepage Public Cache TTL (minutes)''​ defines how long the cache will be expired. The default settings for it is ''​2000''​ minutes, which is around 33 hours. ​+The ''​Homepage Public Cache TTL (minutes)''​ defines how long before ​the cache will be expired. The default settings for it is ''​2000''​ minutes, which is around 33 hours. ​
  
-To keep the page cached most of the time, you can either set longer TTL to make the cache stay longer, or run the crawler periodically before the cache expired ​TTL.  For example, for 2000 minutes TTL, running the crawler cron daily will keep the pages cached all the time.+To keep the page cached most of the time, you can either set longer ​Time to Live (TTLto make the cache stay longer, or run the crawler periodically before the TTL is up and the cache expires.  For example, for 2000 minutes TTL, running the crawler cron job daily will keep the pages cached all the time.
  • Admin
  • Last modified: 2020/07/14 17:09
  • by Lisa Clarke