#12019: @cache_page with no args causes IndexError
-----------------------------------+----------------------------------------
          Reporter:  rokclimb15    |         Owner:  nobody     
            Status:  new           |     Milestone:             
         Component:  Cache system  |       Version:  SVN        
        Resolution:                |      Keywords:  @cache_page
             Stage:  Accepted      |     Has_patch:  1          
        Needs_docs:  0             |   Needs_tests:  0          
Needs_better_patch:  0             |  
-----------------------------------+----------------------------------------
Comment (by pat_riot666):

 Replying to [comment:3 rokclimb15]:
 > This behavior with mod_wsgi actually translates to an !IndexError in the
 cache decorator code.  The docs at
 http://docs.djangoproject.com/en/dev/ref/settings/#cache-middleware-
 seconds state that this setting will be used as a default for the cache
 middleware and decorators, which is not currently true.  The attached
 patch adds this functionality to match the documentation, which is also a
 sensible behavior in my opinion.  The patch isn't particularly pretty, but
 neither is this decorator's code since it is littered with backwards
 compat functionality.

 This patch seems to work fine for me as well.  Any chance of this getting
 fixed?

-- 
Ticket URL: <http://code.djangoproject.com/ticket/12019#comment:4>
Django <http://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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to