Indexer
This module uses Magento’s indexer feature to sync the data from your store to Wizzy’ server. You can add catalog data for sync using the following command.
./bin/magento indexer:reindex wizzy_products_indexer wizzy_pages_indexer wizzy_currencies_indexer
If you want to add specific items for indexing you can do it in any following ways,
./bin/magento indexer:reindex wizzy_products_indexer ./bin/magento indexer:reindex wizzy_pages_indexer ./bin/magento indexer:reindex wizzy_currencies_indexer
Queue
Executing above commands add the specific catalog data in a Queue and the queue can be executed using the following indexer command.
./bin/magento indexer:reindex wizzy_sync_queue_runner_indexer
If you’re executing this command for the first time it will take approximately 3-7 minutes depending on your server configuration and catalog size
By default Queue executes 7 jobs in a single execution, which is enough to complete the first module setup process. You will be able to change this number in future releases.
You need to perform the above commands whenever you’ve configured the store completely for the first time or you change any configuration under Catalog Index Configuration or UI Customisation.
CRON
You must set the following command in the cron job to synchronize catalog data with Wizzy whenever it gets updates in your store.
./bin/magento indexer:reindex wizzy_sync_queue_runner_indexer
Along with the above sync indexer we will also need to add two more indexers in CRON.
1. Product Prices Indexer
The product prices indexer needs to be added in crontab to run everyday at midnight. (This is only required if you’re using Product’s special prices or Catalog Price Rules)
This indexer automatically gets executed when catalog_product_price indexer is executed, so we only need to add this indexer in crontab and never need to execute it manually.
./bin/magento indexer:reindex wizzy_products_prices_indexer
2. Invalidate Unresponsive Sync Indexer
This indexer checks the last status of sync indexer and if its in processing from more then an hour due to any reason it will add the sync indexer back in Reindex Required state and will add all queue processing items back in the queue. The indexer needs to be added in crontab to run every hour.
This indexer doesn’t need to be executed manually.
./bin/magento indexer:reindex wizzy_invalidate_unresponsive_sync_indexer
A sample crontab line may look like this, Don’t forget to change the minutes count as well as path to the magento installation.
*/7 * * * * php path/to/bin/magento indexer:reindex wizzy_sync_queue_runner_indexer 1 0 * * * * php path/to/bin/magento indexer:reindex wizzy_products_prices_indexer 0 * * * * php path/to/bin/magento indexer:reindex wizzy_invalidate_unresponsive_sync_indexer
Please change the duration of above crontabs according to your needs and server configuration.