Hi all.
Can anyone tell, does django.cache locks file for writing by concurrent process?
--
You received this message because you are subscribed to the Google Groups "Django developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-develop...@googlegroups.com.
To post to this group, send email to django-d...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-developers?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
Yes, you are right. But I asked for another reason.
For example, I see, that werkzeug's cache write cache trough temporary file https://github.com/mitsuhiko/werkzeug/blob/master/werkzeug/contrib/cache.py#L660
But Django cache do not use neither, tmp file or file locking.
So, multiple processes can write a file simultaneously. Also, other processes can obtain incomplete data.
I think it's a bug, so I asked a question in this group (django-developers).
I've created a ticket with a script that demonstrates the issue and provides an implementation that uses werkzeug's tempfile approach https://code.djangoproject.com/ticket/20536Before I start forking on github I'd like some feedback on the ticket. Thanks!
Op donderdag 28 maart 2013 01:23:52 UTC+1 schreef Russell Keith-Magee het volgende:
--
You received this message because you are subscribed to a topic in the Google Groups "Django developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-developers/PCgYCInrL0g/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to django-develop...@googlegroups.com.