diff --git a/server/cache/document.lua b/server/cache/document.lua index a73c2b53..d8ded303 100644 --- a/server/cache/document.lua +++ b/server/cache/document.lua @@ -118,12 +118,12 @@ function Document:update() local channel = makechan("doc update") --清理缓存 channel:push(function() + self.flushing = false local rcode, rres = redis_mgr:execute(MAIN_DBID, "DEL", self.hotkey) if qfailed(rcode) then log_err("[Document][update] del failed: {}=> hotkey: {}", rres, self.hotkey) return false, rcode end - self.flushing = false return true, SUCCESS end) channel:push(function() @@ -172,7 +172,7 @@ function Document:update_field(field, field_data) local fields = self:set_field(field, field_data) if fields then self:update_redis(fields) - end + end else self.datas = field_data self:check_primary(self.datas, self.primary_key)