add a more resilient cache system with a global cache for each note from path
This commit is contained in:
@@ -18,7 +18,10 @@ export const useFile = (sha: Ref<string> | string, retrieveContent = true) => {
|
||||
renderFromUTF8,
|
||||
getRawContent: getRawContentFromFile
|
||||
} = useMarkdown(toValue(sha))
|
||||
const { getCachedNote, saveCacheNote } = prepareNoteCache(toValue(sha))
|
||||
const { getCachedNote, saveCacheNote } = prepareNoteCache(
|
||||
toValue(sha),
|
||||
toValue(path)
|
||||
)
|
||||
const fromCache = ref(false)
|
||||
|
||||
const rawContent = ref('')
|
||||
|
||||
Reference in New Issue
Block a user