I have 2 mapper XML files, A and B. In one of the files (A) one of the associations in a resultMap references a statement in another mapper's (B) mapping.
I'm using Level 2 cache with the tag <cache flushInterval="60000"/>
Mapper B contains no insert / update / delete statements, so there should be nothing clearing the cache other than the flushInternal.
However, for some reason the cache is getting cleared. Is there a way to log when this is happening or what is triggering it?
It *seems* this occurs with inserts / updates / deletes in Mapper "A".
Two questions:
- Can one mapper file clear the L2 cache for another mapper file?
- Is there a way to track the clearing of cache to understand what is triggering it more easily. I have briefly looked at the source code, but haven't done a deep dive yet.