#13014: Cache templatetag and i18n ---------------------------+------------------------------------------------ Reporter: yml | Owner: nobody Status: new | Milestone: Component: Uncategorized | Version: 1.1 Keywords: | Stage: Unreviewed Has_patch: 0 | ---------------------------+------------------------------------------------ '''Issue:''' The cache templatetag does not take into account the Language (i18n).
'''Solution:''' The cache templatetag[1] should be updated to use the new _i18n_cache_key_suffix[2]. Given context in which this code is evaluated the request is not required : cache_key = _i18n_cache_key_suffix(request=None, cache_key): This is in fact a follow up this ticket : #5691 which reported a similar issue with the cache middleware. the infrastructure for this change has been added in r12624 and r12546 [1]http://code.djangoproject.com/browser/django/trunk/django/templatetags/cache.py#L28 [2] http://code.djangoproject.com/browser/django/trunk/django/utils/cache.py#L137 -- Ticket URL: <http://code.djangoproject.com/ticket/13014> 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 django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.