My question is "can anybody corroborate or explain?" The following caching logic works as expected on localhost, but fails on heroku (queries every time):
from django.core.cache import cache
QUEUE_KEY = "queue"
def index(request):
queue = cache.get(QUEUE_KEY)
if not queue:
queue = QueueItem.objects.order_by("id")
cache.set(QUEUE_KEY, queue)
c = {'queue': queue}
return render_to_response('index.html', c)