Added conditional for redis in production