add a more resilient cache system with a global cache for each note from path

This commit is contained in:
Julien Calixte
2024-07-16 21:55:54 +02:00
parent 100d593050
commit 8802ffb5b2
3 changed files with 27 additions and 4 deletions

View File

@@ -49,7 +49,7 @@ watch(mode, async (newMode) => {
}
newContent.value = initialContent
const { saveCacheNote } = prepareNoteCache(newSha)
const { saveCacheNote } = prepareNoteCache(newSha, newContentPath)
await saveCacheNote(encodeUTF8ToBase64(content), {
editedSha: newSha,
path: newContentPath