public static void ClearCache(string reason, bool fullClear = true) { if (reason == "SymOpt") { GetSymbolOptions.ClearCache(reason); } if (fullClear) { GetTypeId.ClearCache(reason); GetSymbolTypeIdWide.ClearCache(reason); GetFieldTypeId.ClearCache(reason); GetModuleBase.ClearCache(reason); GetGlobalAddress.ClearCache(reason); ReadEnum32FromStructure.ClearCache(reason); GetNameByOffsetWide.ClearCache(reason); GetFieldOffset.ClearCache(reason); GetTypeSize.ClearCache(reason); GetEnumName.ClearCache(reason); GetSymbolName.ClearCache(reason); } }