views:

16

answers:

1

hi there i am looking for a good way to automaticly create/update sitemp for my website www.indexagahi.com its a free classified ads site , i want to rebuild or update sitemap.xml whenever an ads has been added . whats your idea ? is it possible . i appreciate any help.

thanks a lot.

+1  A: 

I wouldnt do it anytime an ad is added, if you have a large number of users it would constantly be updating. Also if you try doing it at the same time a user submits an ad then they will have a long wait while the script runs. I would setup a cron job to do it every 30 or 60 mins. This will prevent it from constantly running and it will keep the user from having long waits for an ad to submit.

Josh Curren
thanks - would you explain it more ?
Najm
I added a more of an explanation. Do you still need more?
Josh Curren
how does it work ? more about "cron job" please;any source?ways?
Najm
Check out http://en.wikipedia.org/wiki/Cron or search this site for cron jobs.
Josh Curren