Indexing is a task that should always be run from the server side, instead of running it in your browser or via HTTP/HTTPS with wget or similar.
If indexing runs directly on the server it spends the least possible amount of resources, and is not vulnerable to being interrupted by web server time limits.
Also, on the command line Servebolt allows for a higher PHP memory limit, which may be required for larger catalogs to finish indexing successfully.
Log in to SSH and run the indexer like this:
cd ~/public/ wp algolia reindex --all
If you run WordPress in a Multi-site network, you also need to add a URL parameter.
wp algolia reindex --all --url=mydomain.com
After this successfully completes, you can set up a cron job in the admin panel to run this once nightly.
Give us your feedback on this article
Did this help you?
Want to speed up your site, easily?
Set up your site on Servebolt, free of charge for 60 days, and see for yourself how fast it can be on our extremely fast hosting.
A faster site converts better, ranks better on Google, and is better for the climate.