We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f22ad5 commit af7b0d7Copy full SHA for af7b0d7
src/main/java/org/apache/ibatis/mapping/CacheBuilder.java
@@ -85,8 +85,7 @@ public Cache build() {
85
setDefaultImplementations();
86
Cache cache = newBaseCacheInstance(implementation, id);
87
setCacheProperties(cache);
88
- // issue #352, do not apply decorators to custom caches
89
- if (cache.getClass().getName().startsWith("org.apache.ibatis")) {
+ if (PerpetualCache.class.equals(cache.getClass())) { // issue #352, do not apply decorators to custom caches
90
for (Class<? extends Cache> decorator : decorators) {
91
cache = newCacheDecoratorInstance(decorator, cache);
92
0 commit comments