def __call__(self, request, *args, **kwargs): key = self.get_cache_key(*args, **kwargs) reply = cache.get(key) if reply is None: reply = Feed.__call__(self, request, *args, **kwargs) cache.set(key, reply, 100500) # About 28 hours :] if settings.DEBUG: print "Cache %s miss!" % (key) else: if settings.DEBUG: print "Cache %s hit!" % (key) return reply