fixed redis cache bug