Django - Caching
Given this template code:
What happens if
{% cache 600 'menu' user.id %}
- Home
- Profile
What happens if
user.id changes?{% cache 600 'menu' user.id %}
user.id changes?user.id changes, Django creates a new cache entry for that user, so the fragment is cached separately.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions