Zend certified PHP/Magento developer

Run cron crawler.sh litespeed cache

Documentation:
https://docs.litespeedtech.com/lscache/litemage/crawler/

Path to: M2-crawler.sh in server /home/user/M2-crawler.sh

Via SSH I run crawler in this way:

cd /home/user
bash M2-crawler.sh SITE-MAP-URL
  1. How to run crawler via cron and log in var/log?
  • I try some like this but Im not sure, is correct way?


/usr/local/php74/bin/php74 /home/user/bash M2-crawler.sh https://sitemap.pl/pub/media/sitemap/sitemap-1-1.xml 2>&1 | grep -v "Cached" >> /home/user/domains/sitemap.pl/public_html/var/log/cachels.cron.log

  1. I have 50k+ products – How many cron time should schedule the crawler run?