Index: share/jive/slim/SlimServer.lua =================================================================== --- share/jive/slim/SlimServer.lua (revision 2090) +++ share/jive/slim/SlimServer.lua (working copy) @@ -479,6 +479,14 @@ -- on error, print something... if err then logcache:error("_getArtworkThumbSink(", iconId, ", ", size, ") error: ", err) + + -- free artworkThumbIcons entry + local icons = self.artworkThumbIcons + for icon, key in pairs(icons) do + if key == cacheKey then + icons[icon] = nil + end + end end -- if we have data if chunk then Index: share/jive/slim/ArtworkCache.lua =================================================================== --- share/jive/slim/ArtworkCache.lua (revision 2090) +++ share/jive/slim/ArtworkCache.lua (working copy) @@ -20,7 +20,7 @@ -- Limit artwork cache to 15 Mbytes -local ARTWORK_LIMIT = 15 * 1024 * 1024 +local ARTWORK_LIMIT = 1 * 1024 * 1024 function __init(self) @@ -118,6 +118,9 @@ self.lru = entry.prev self.total = self.total - entry.value:getBytes() + + entry.prev = nil + entry.next = nil end if log:isDebug() then