def object_deflate(self, obj, **kwargs):
        # This currently assumes obj is a Model instance
        cache_key = 'api_%s_%d' % (self.__class__.__name__, obj.pk)
        data = self._meta.cache.get(cache_key)
        if data is None:
            data = super(CachedSerialiser, self).object_deflate(obj, **kwargs)
            timeout = getattr(self._meta, 'timeout', None)
            self._meta.cache.set(data, timeout=timeout)
        return data
Add object caching
dataset/ETHPy150Open funkybob/django-nap/nap/rest/cache.py/CachedSerialiser.object_deflate