I have a Django siteframework to create dynamic sitemap.xml
sheet.
class NewsSitemap(Sitemap):
changefreq = "daily"
priority = 0.8
protocol = 'https'
def items(self):
return News.objects.all() # news objects
def lastmod(self, obj):
return obj.date_posted
def Newstitle(self, obj):
return obj.titleEnglish
def location(self,obj):
return '/news/'+ obj.country + '/' +obj.slug
will server create sitemap file only once in a day according to above code ?
If server create sitemap file each time when different user visit , it would take lot of processing power as my database is huge.