On Fri, 2008-11-14 at 03:24 -0800, Sebastian wrote:
> The following code would show the same content for all users:
> 
> {% cache 500 usertags %}
> 
> {% for tag in tags%}
>   {{ tag }}
> {% endfor %}
> 
> {% endcache %}
> 
> 
> I need to to be able to cache template content based on the user
> session.
> 
> Does anyone know how to do that?

Read the documentation for the cache tag again ([1]). It explains how to
do this sort of thing.

[1]
http://docs.djangoproject.com/en/dev/topics/cache/#template-fragment-caching

Regards,
Malcolm



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

Reply via email to