Jacob Kaplan-Moss wrote:
> On Aug 30, 2006, at 11:51 AM, Dan Watson wrote:
> > Just wanted to draw some attention to
> > http://code.djangoproject.com/ticket/2628 - it's a contrib app I've
> > written to automatically generate sitemap.xml files for Google. I've
> > also written about it here:
> > http://theidioteque.net/blog/2006/08/29/google-sitemaps/
>
> Great stuff, Dan!
>
> My only quibble is the recommendation in the docs to call
> ``ping_google()`` from the ``save()`` method.  I think the idea of
> setting off a HTTP request from within a ``save()`` method isn't such
> a grand idea; network latency could cause the save to take too long,
> or the request could raise an exception causing the object not to get
> saved...  I'm not sure about what would be better, but it does rub me
> the wrong way.

Yeah, I wasn't too concerned about the latency, since a save operation
taking a little longer isn't so bad compared to a read operation. My
concern would be more along the lines of sending a lot of pings
unnecessarily. A smarter approach for most sites would be to call it
daily (or at some interval) from a cron job.

I'm fine with with taking that piece out of the documentation, though.

Dan


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers
-~----------~----~----~----~------~----~------~--~---

Reply via email to