Cron Job to Rebuild Search Index | |
You can rebuild index by visiting example.com/tiki-admin.php?page=search&rebuild=now Since Tiki9, if you have a large site and do not use MySQL Full Text search, you should set up a Cron job to regularly rebuild the index. How to do it varies from server to server, but here is an example. For a fuller description of the commands themselves, please see Unified Index - from the command line Add this line for a daily rebuild in Tiki11 and up Copy to clipboard
To set RAM to 4 GB, increase max execution time, force an initial index cleanup and log Copy to clipboard
Tips
|
Works in Shell but not as a Cron Job | |
The environment for a cron job (e.g., the To find out what the Let's say the shell script is called Cron job to run shell script Copy to clipboard
The shell script cron.sh Copy to clipboard
Related: alias
|