Make doctrine optional when warming cache