Fix #2415 add enables/disables the AST cache option