mirror of
https://github.com/zadam/trilium.git
synced 2025-11-11 07:45:51 +01:00
renamed treeCache into froca
This commit is contained in:
@@ -66,7 +66,7 @@ eventService.subscribe([eventService.ENTITY_CHANGED, eventService.ENTITY_DELETED
|
||||
childNote.parentBranches = childNote.parentBranches.filter(branch => branch.branchId !== branchId);
|
||||
|
||||
if (childNote.parents.length > 0) {
|
||||
childNote.invalidateSubtreeCaches();
|
||||
childNote.invalidateSubfrocas();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -105,7 +105,7 @@ eventService.subscribe([eventService.ENTITY_CHANGED, eventService.ENTITY_DELETED
|
||||
if (note && attr) {
|
||||
// first invalidate and only then remove the attribute (otherwise invalidation wouldn't be complete)
|
||||
if (attr.isAffectingSubtree || note.isTemplate) {
|
||||
note.invalidateSubtreeCaches();
|
||||
note.invalidateSubfrocas();
|
||||
} else {
|
||||
note.invalidateThisCache();
|
||||
}
|
||||
@@ -147,7 +147,7 @@ eventService.subscribe([eventService.ENTITY_CHANGED, eventService.ENTITY_DELETED
|
||||
|
||||
if (note) {
|
||||
if (attr.isAffectingSubtree || note.isTemplate) {
|
||||
note.invalidateSubtreeCaches();
|
||||
note.invalidateSubfrocas();
|
||||
}
|
||||
else {
|
||||
note.invalidateThisCache();
|
||||
|
||||
Reference in New Issue
Block a user