mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-09 21:55:49 +00:00
flush documents to mongo on incremental compiles
This commit is contained in:
parent
7eb1c01994
commit
ddecd26718
1 changed files with 7 additions and 2 deletions
|
@ -174,9 +174,14 @@ module.exports = ClsiManager =
|
|||
ClsiManager._finaliseRequest project_id, options, project, docs, files, callback
|
||||
|
||||
_getContentFromDocUpdater: (project_id, callback = (error, docs) ->) ->
|
||||
DocumentUpdaterHandler.getProjectDocs project_id, (error, docs) ->
|
||||
# Workaround: for now, always flush project to mongo on compile
|
||||
# until we have automatic periodic flushing on the docupdater
|
||||
# side, to prevent documents staying in redis too long.
|
||||
DocumentUpdaterHandler.flushProjectToMongo project_id, (error) ->
|
||||
return callback(error) if error?
|
||||
callback(null, docs)
|
||||
DocumentUpdaterHandler.getProjectDocs project_id, (error, docs) ->
|
||||
return callback(error) if error?
|
||||
callback(null, docs)
|
||||
|
||||
_getContentFromMongo: (project_id, callback = (error, docs, files) ->) ->
|
||||
DocumentUpdaterHandler.flushProjectToMongo project_id, (error) ->
|
||||
|
|
Loading…
Add table
Reference in a new issue