Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

213
Views
MyBatis - Disable cache

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:

  • Calling SqlSession.clearCache() before every query
  • Adding <setting name="cacheEnabled" value="false" /> to mybatis-config.xml
  • Adding <setting name="localCacheScope" value="STATEMENT" /> to mybatis-config.xml
  • Adding @Options(flushCache = Options.FlushCachePolicy.TRUE, useCache = false) to every statement

Nothing works and I always get old data on queries.

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!