Cache does not work, since redis goes out of scope