If you benefit from web2py hope you feel encouraged to pay it forward by contributing back to society in whatever form you choose!


  • 0
    blackthorne  8 years ago

    Pedro,

    thank you for your slice.

    Just a couple of questions:

    1) given that your source of locations seems to be the request object, doesn't that require your visitors to open every page so it shows up in your "auto-generated" sitemap? If they can't find, it won't be in your sitemap and if it's not on the sitemap, they may not be able to find it in the first place..

    2) that check implies a DB update or insert for every single request (beyond the ones that are already needed for the project) which seems to be a bit heavy-weight. Couldn't you do that by looking into the logs, maybe with some crontask in the background?

    Kind regards,

    Francisco 

Commented on:

this is a insight I had to make a full control sitemap for sitemap.xml, but this cam be extensible to do a html sitemap too.

Hosting graciously provided by:
Python Anywhere