MCPcopy Create free account
hub / github.com/error311/FileRise / invalidateFolderCaches

Function invalidateFolderCaches

public/js/folderManager.js:978–990  ·  view source on GitHub ↗
(folder)

Source from the content-addressed store, hash-verified

976 return p;
977}
978function invalidateFolderCaches(folder) {
979 if (!folder) return;
980 const sourceId = getActiveSourceId();
981 const key = folderStatsCacheKey(folder, sourceId);
982 _folderCountCache.delete(key);
983 _nonEmptyCache.delete(folder);
984 _inflightCounts.delete(key);
985 _sharedFolderStatsCache.delete(key);
986 _sharedFolderStatsInflight.delete(key);
987 _childCache.delete(folder);
988 _capsCache.delete(folder);
989 _capsInflight.delete(folder);
990}
991
992// Expand root -> ... -> parent chain for a target folder and persist that state
993async function expandAncestors(targetFolder) {

Callers 7

refreshFolderIconFunction · 0.85
refreshFolderChildrenFunction · 0.85
syncTreeAfterFolderMoveFunction · 0.85
setFolderEncryptionFunction · 0.85
finalizeCryptoJobUiFunction · 0.85
renameFolderInlineFunction · 0.85
folderManager.jsFile · 0.85

Calls 3

folderStatsCacheKeyFunction · 0.85
getActiveSourceIdFunction · 0.70
deleteMethod · 0.45

Tested by

no test coverage detected