title: How to cache a view only for unauthenticated users?
body: <p>I have a view which I want to cache only for unauthenticated users.
  The view should be something like this:</p>
  
  <pre><code>@cache_page_for_guests(60 * 15)
  def my_view(request):
  </code></pre>
  
  <p>I've looked at the <a href="https://docs.djangoproject.com/en/1.8/topics/cache/#specifying-per-view-cache-in-the-urlconf" rel="nofollow noreferrer">docs</a> but could not but could not find any hints about this. </p>
  
  <p>Actually my question is exactly as <a href="https://stackoverflow.com/questions/34154730/how-to-cache-django-views-only-for-unauthenticated-users">this</a>, which is unanswered, and I could not make sense of the comments. </p>
  
  <p>So appreciate your help.</p>