Only use Redis cache when deployed.