Manixat Posted December 7, 2012 Share Posted December 7, 2012 I'm not sure where to post this but ... I want to know how sitemaps work, and I know the basics but I don't understand how is every page supposed to be in the sitemap, meaning that I might have like 500 million IDs in my database, how is that all going to go in the sitemap ? Quote Link to comment https://forums.phpfreaks.com/topic/271736-sitemaps/ Share on other sites More sharing options...
requinix Posted December 8, 2012 Share Posted December 8, 2012 Exactly the way you might think you have to: do a query to get the IDs and whatever information is necessary to know their URLs, then dump it to a file. (Because caching it in a file will be much better than doing it on demand.) Quote Link to comment https://forums.phpfreaks.com/topic/271736-sitemaps/#findComment-1398181 Share on other sites More sharing options...
Manixat Posted December 8, 2012 Author Share Posted December 8, 2012 so you mean to tell me that the sitemap file has to contain every single possible page and everytime a new ID ( row ) is inserted into a table, which will generate a new instance of a page, I have to add it to the sitemap ? Quote Link to comment https://forums.phpfreaks.com/topic/271736-sitemaps/#findComment-1398183 Share on other sites More sharing options...
requinix Posted December 8, 2012 Share Posted December 8, 2012 It doesn't have to, but yeah pretty much. Quote Link to comment https://forums.phpfreaks.com/topic/271736-sitemaps/#findComment-1398185 Share on other sites More sharing options...
Christian F. Posted December 8, 2012 Share Posted December 8, 2012 If this is for a forum, or something similar, I'd just add a URL to the forum's front page. Plus any other non-thread/post pages, that might be of interest. I wouldn't bother with the actual threads themselves, since they (as you noted) increase in number and change so often. Quote Link to comment https://forums.phpfreaks.com/topic/271736-sitemaps/#findComment-1398205 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.