support commit/optimize as flush/optimize and check a content type.