#26240: docs about cached.Loader thread safety unclear
-------------------------------+--------------------
     Reporter:  TZanke         |      Owner:  nobody
         Type:  Uncategorized  |     Status:  new
    Component:  Documentation  |    Version:  1.9
     Severity:  Normal         |   Keywords:
 Triage Stage:  Unreviewed     |  Has patch:  0
Easy pickings:  0              |      UI/UX:  0
-------------------------------+--------------------
 Hello,

 in the documentation about the cached template loader, a warning box
 informs about thread safety concerns with template tags if using the
 cached template loader.
 
https://docs.djangoproject.com/en/1.9/ref/templates/api/#django.template.loaders.cached.Loader

 After locking into the code of the loader i could not find anything
 related to multi thread template loading or anything like that.
 https://github.com/django/django/blob/master/django/template/loaders/cached.py

 So i think the cached loader is safe in a non-multi thread Django setup.
 The warning in the documentation is only relevant for multi thread setups
 of Django.

 My recommendation:

 Update the cached loader warning in the documentation to make clear, this
 only applies to multi thread Django setups.

--
Ticket URL: <https://code.djangoproject.com/ticket/26240>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/049.54706988d26b288908a8643f55e56f17%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to