Wednesday, August 26, 2015

How to Reindex a Site in Drupal


Run a manual cron job. Cron is a task that is set up on the server-side to tell your server to refresh its database and other core aspects and functions of your Website. The easiest way of running a cron task through Drupal is by typing in this URL: http://www.yoursite.com/cron.php. Hit enter and let the cron job run manually.
Set up the cron interval. Most cron jobs need to be triggered in intervals. For example, a Website with a lot of user-updated content may need to re-index the content search by running cron jobs once a day. The best way to do this is though the server's crontab function on your hosting control panel.
Type the following into your hosting panel's cron section: 0



wget -O - -q -t 1 http://www.example.com/cron.php0 represents the top of the hour, and the other asterisks refer to the day, month and day of the week. This example runs cron once an hour.
Use the Poormanscron module as an alternate option for re-indexing the website. This module can be found at: http://drupal.org/project/poormanscron. At this time of this writing, Poormanscron is now part of the latest installation of Drupal, which is Drupal 7, and therefore the module does not need to be installed. For Drupal 6 and below, this module must be set up and configured for the desired cron job intervals.
VPS Hosting

1 comment: