I need to disable the cache of MyBatis because I'm altering my database in other ways and want that MyBatis has always the latest version of my data ready. I tried numerous ways to disable it:
SqlSession.clearCache() before every query<setting name="cacheEnabled" value="false" /> to mybatis-config.xml<setting name="localCacheScope" value="STATEMENT" /> to mybatis-config.xml@Options(flushCache = Options.FlushCachePolicy.TRUE, useCache = false) to every statementNothing works and I always get old data on queries.