Fix redis enable logic in template