Django - Caching
Consider this Django view code:
What will this view return on the first request when the cache is empty?
from django.core.cache import cache
def sample_view(request):
message = cache.get('greeting')
if message is None:
message = 'Welcome!'
cache.set('greeting', message, timeout=60)
return messageWhat will this view return on the first request when the cache is empty?
