Friday, July 30, 2010

Re: generate cache by visiting protected links

On 29/07/2010 18:48, David De La Harpe Golden wrote:
> On 29/07/10 16:58, Benedict Verheyen wrote:
>
>> So calling a thread once from within a view is not safe ?
>
> Depends on what your expectations are...
>
> I haven't managed to dig up the paragraph discussing the issue that I
> recall existing. I've a strong feeling it was by Graham Dumpleton, he
> mentions in passing here:
>
> http://groups.google.com/group/django-users/msg/e6e6b182fcd23d39
>
> "You also don't have to deal with possibility of Apache killing off one
> its processes, which might contain running jobs, when it is recycling
> its processes."
>
> but there was a somewhat more detailed writeup somewhere else.
>
>> I'm planning on using Apache for production.
>
> Not a reason not to, just a reason not to use that particular approach
> when doing so.
>

Thanks for the info, i'll put the code outside the view in an external
file so i don't get unwanted behaviour.

Regards,
Benedict

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment