Login

Snippets by TAH

Snippet List

vary_on_user

@vary_on_user doesn't work properly if your site uses third-party cookies, since the cache key is created from *all* of the cookies in the request header. This decorator caches pages based on the user ID, so it works reliably.

  • decorator
  • vary_on_cookie
Read More
Author: TAH
  • 0
  • 0

TAH has posted 1 snippet.