1. do not want to cache the whole site
2. do not want to cache only anounymous user with this in settings.py:
CACHE_MIDDLEWARE_ANONYMOUS_ONLY = True
so can i use:
1. @cache_page(60 * 15)
def slashdot_this(request):
to cache pages for all user
2. use this in BASE.html to cache all page for anonymous
{% if user.is_anonymous %}
{% load cache %}
{% cache 500 sidebar %}
.. sidebar ..
{% endcache %}
{% endif %}
i'm not sure:
1. does it works together?
2. is there conflict?
thanks!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---