By default, Searchanise tracks your store’s catalog changes and indexes them automatically, But you can also run a cron job to do a full re-index. To do so, follow these steps:
- Go to:
- Settings > Searchanise (for plugin version 1.0.11 or earlier), or
- WooCommerce > Settings > Searchanise (for version 1.0.12 or later).
- In the Sync catalog setting, select Periodically via cron.
- Use the Cron resync interval option to set the desired time interval.
- Click Save changes.
WP Cron behavior in the Searchanise plugin
- When you activate the plugin, WP Cron events are automatically created. Even if the Sync catalog setting is set to another value, cron events still trigger regularly. However, they won’t perform actions unless the sync process is enabled.
-
By default, the cron job runs daily, meaning catalog indexation is scheduled every 24 hours from when the plugin is activated.
- If you select a different interval, such as hourly, the already scheduled event won’t be updated when the settings are saved. To apply the new interval:
-
- Deactivate the plugin.
- Activate it again.
NoteIn future updates, we plan to improve this functionality so that the cron job is automatically rescheduled when saving the settings.
-