1. Home
  2. Docs
  3. ShopClass Docs
  4. Configure Sphinx
  5. Enable Cron Job for Index rotation

Enable Cron Job for Index rotation

Shopclass theme in it’s sphinx help section gives you unique index name. Which you have already configured in sphinx.conf file. Your sphinx index name would be like main_e94cce4069a7 delta_e94cce4069a7

We will use above index name as our example, Now to rotate these indexes automatically we will setup a cronjob. Enter sudo crontab -e it will open a editor for you cronjob now add these two lines in that file and save that file.

0 0 * * * /usr/bin/indexer --rotate main_e94cce4069a7 
*/5 * * * * /usr/bin/indexer --rotate delta_e94cce4069a7
Was this article helpful to you? Yes No 1

How can we help?