Search-Index integration + cache flush on start

This commit is contained in:
NGPixel
2017-02-12 15:40:43 -05:00
parent 8af9212837
commit 12ea967a84
13 changed files with 259 additions and 24 deletions

View File

@@ -113,7 +113,13 @@ var job = new Cron({
// -> Update cache and search index
if (fileStatus !== 'active') {
return entries.updateCache(entryPath)
return entries.updateCache(entryPath).then(entry => {
process.send({
action: 'searchAdd',
content: entry
})
return true
})
}
return true