mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
added comment about flushing to track changes
This commit is contained in:
parent
6e97521971
commit
e8f09f3357
1 changed files with 5 additions and 0 deletions
|
@ -100,6 +100,11 @@ module.exports = DocumentManager =
|
|||
|
||||
DocumentManager.flushDocIfLoaded project_id, doc_id, (error) ->
|
||||
return callback(error) if error?
|
||||
# We should flush pending ops to track-changes here but this is
|
||||
# already done in the real-time WebsocketController.leaveProject
|
||||
# method so we leave it there. Note, if you ever add the flush
|
||||
# in here be sure to do it in the background because it can take
|
||||
# a long time.
|
||||
RedisManager.removeDocFromMemory project_id, doc_id, (error) ->
|
||||
return callback(error) if error?
|
||||
callback null
|
||||
|
|
Loading…
Reference in a new issue