From 281df50da5e782d6410a07056f44975c704e4350 Mon Sep 17 00:00:00 2001 From: chrox Date: Thu, 23 Oct 2014 13:48:45 +0800 Subject: [PATCH] fix #1028 --- frontend/cache.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)