|
02-18-2004, 09:13 AM | #1 |
Orange Mole
Join Date: Sep 2003
Posts: 40
|
Managing CRON and max_pages
We added a new feature to manage from Phpdig admin area:
-crontab list -the max number of pages indexed per site . Setting the field "Days" with a value > 0 you set the number of days cron must wait befor reindex a page. The php script write a text file named "phpdig_cron". Here is an example: 0 0 1-31/1 * * /path/to/phpdig_cron 0 0 1-31/1 * * php -f /path/to/spider.php http://www1.smfn.unical.it/ 0 0 1-31/3 * * php -f /path/to/spider.php http://www.miriane.it/ 0 0 1-31/4 * * php -f /path/to/spider.php http://www.vinsoft.it/ As you can see, in the first line crontab reload the list daily, so you can apdate it from the admin area and wait 1 night to see your sites updated automatically. Then you have the list of the site you want to automatically reindex. The site www.miriane.it is reindexed every 3 days, www.vinsoft.it every 4 days. If some of you is interested to the source code we can post it here (ask me or Jygius) You can see a demo HERE Enter in admin using default user/password click on Statistics -> Pagespersite Enjoy Alivin70 |
02-24-2004, 01:26 AM | #2 |
Orange Mole
Join Date: Sep 2003
Posts: 40
|
A patched version of Phpdig 1.8.0 with the feature described in this thred is online.
You can find it in the phpdig page of my website. Please, report bugs, comments and suggestions I hope Charter will include our mods in the next official release of Phpdig. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Looking for cron tutorial | grassmonster | How-to Forum | 0 | 07-07-2007 09:33 AM |
cron again | xdaniel | Bug Tracker | 4 | 05-12-2005 07:33 AM |
Locking using Cron | Slider | Troubleshooting | 8 | 01-13-2005 12:32 AM |
Win2000 Cron | duffy | Troubleshooting | 2 | 12-16-2004 04:43 AM |
prblem with cron | franklin74 | Troubleshooting | 5 | 10-08-2004 07:56 AM |