Skip to content

Commit

Permalink
fix(cache) missed setting stat collection, adding back (#30935)
Browse files Browse the repository at this point in the history
#30670
The DynamicTTL does not call the stats collector when it instantiates
the Caffeine Cache. This adds the stats collector to the DynamicTTL
cache


![image](https://github.com/user-attachments/assets/832240c7-33b1-4af2-b4ba-e4ed9f3160bb)
  • Loading branch information
wezell authored Dec 13, 2024
1 parent 220190b commit 5b04b1b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dotCMS/src/main/java/com/dotcms/cache/DynamicTTLCache.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public long expireAfterRead(K key, CacheValue value, long currentTime, long curr
return currentDuration;
}
})
.recordStats()
.maximumSize(maxCapacity)
.build();
}
Expand Down

0 comments on commit 5b04b1b

Please sign in to comment.