|
[
Permalink
| « Hide
]
Aaron Smuts added a comment - 16/Mar/07 12:27 AM
The memory cache is buffering items to disk when the max is reached. It's set to move 2 or 3 at once. When the max is reached, it moves 2 or 3 (I need to check).
Thomas Vandahl made changes - 11/Jun/07 06:17 PM
I inspected the code of the LRUMemoryCache and i've found that on the line 126 it checks if the max object properties has been reached, and if so, cleans the cache. I guess that this is wrong cause it has to check if the amount of stored object has exccedes the max objects configured.
Changin this lines // If the element limit is reached, we need to spool if ( size < this.cattr.getMaxObjects() ) { return; } for these: if ( size <= this.cattr.getMaxObjects() ) { return; } should make the trick. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||