• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Sitemap cron should run daily

Claudio

Well-known member
#3
I don't understand why it runs only 2 times a week. New content is generated everyday.

It should run daily at around 00:30 where server load is less.
Search Engines doesn't need a sitemap in order to index a website...they just visit all the links and that's all.

A sitemap is to help them to find everything you want but feel free to change the cron
 

pegasus

Well-known member
#8
IIRC, the current cron rebuilds the sitemap from scratch each time it runs. So running it daily would require a lot more work than it really needs to, especially on large forums.

IMO, a cron should run daily that adds any new entries (filtering by last cron time should be sufficient) to an "updated" sitemap which would be mentioned in the sitemap index. Then once a month or something, have a cron that rebuilds the entire sitemap to cleanup deleted, moved content, and such and merges the "updates" into the main sitemap.
 

thedude

Well-known member
#10
IIRC, the current cron rebuilds the sitemap from scratch each time it runs. So running it daily would require a lot more work than it really needs to, especially on large forums.

IMO, a cron should run daily that adds any new entries (filtering by last cron time should be sufficient) to an "updated" sitemap which would be mentioned in the sitemap index. Then once a month or something, have a cron that rebuilds the entire sitemap to cleanup deleted, moved content, and such and merges the "updates" into the main sitemap.
Just an fyi, a sitemap takes very little resources of the server to build, even for large sites.