cache_key = 'index' entry_list = Entry.objects.all() data = serializers.serialize('json', entry_list) cache.set(cache_key, data, None) def getEntries(): cache_key = 'index' data = cache.get(cache_key) if not data: "*********** init only ***********" warmCache() data = cache.get(cache_key) return HttpResponse(data, content_type = "application/json").... api/views.py