carlxaeron / django-rosetta

Automatically exported from code.google.com/p/django-rosetta
MIT License
0 stars 0 forks source link

Do not cache rosetta views #23

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Maybe this can be done more intelligently, but I have disabled the cache
for all rosetta views. Something like the attached patch should be used in
rosetta. Note that this breaks compatibility with older Django versions.
Maybe a dummy import could be done if
django.views.decorators.cache.never_cache is not found?

Original issue reported on code.google.com by joost.cassee on 13 Aug 2008 at 8:31

Attachments:

GoogleCodeExporter commented 8 years ago
Updated the patch to work with Python 2.3 (old decorator syntax). The 
never_cache
decorator is older than I though, so no compat workaround is needed. I believe 
this
can be merged without problems.

Original comment by joost.cassee on 14 Aug 2008 at 10:10

Attachments:

GoogleCodeExporter commented 8 years ago
Previous version contained a typo, sorry!

Original comment by joost.cassee on 14 Aug 2008 at 11:18

Attachments:

GoogleCodeExporter commented 8 years ago
Indeed: never_cache was in Django 0.95 (or before), so this is okay for me. 
Thank you for the patches, Joost. Applied in rev [35]

Original comment by mbonetti on 14 Aug 2008 at 11:48