diff --git a/frontend/cache.lua b/frontend/cache.lua index 60f1bc826..a7306a619 100644 --- a/frontend/cache.lua +++ b/frontend/cache.lua @@ -69,8 +69,8 @@ end function Cache:insert(key, object) -- guarantee that we have enough memory in cache if(object.size > self.max_memsize) then - -- we're not allowed to claim this much at all - error("too much memory claimed") + DEBUG("too much memory claimed for", key) + return end -- delete objects that least recently used -- (they are at the end of the cache_order array)