

def get_queryset(self, force_uncached=False):
    cached = cache.get('crate:packages:simple:PackageIndex:queryset')
    if (cached and (not force_uncached)):
        return cached
    qs = super(PackageIndex, self).get_queryset()
    cache.set('crate:packages:simple:PackageIndex:queryset', list(qs), (((60 * 60) * 24) * 365))
    return qs

dataset/ETHPy150Open crate-archive/crate-site/crateweb/apps/packages/simple/views.py PackageIndex.get_queryset/original