Hi Russell,

I seem to missed this email until lately… Here's my take on it if it still matters.

On 01/05/2011 08:29 AM, Russell Keith-Magee wrote:
  4) Modify cache_page to force a render of the response. This defeats
the purpose of introducing TemplateResponse, and would mean that
template response middleware would be executed, but ignored.

I'd go with a variant of this one. The purpose of TemplateResponse is to delay rendering but eventually it will be rendered anyway. And caching is an operation from which a user can expect the response to be baked.

However I think that baking is not the job for cache_page. Instead I think that TemplateResponse should bae itself whenever it's pickled.

--
You received this message because you are subscribed to the Google Groups "Django 
developers" 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-developers?hl=en.

Reply via email to