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

Function resetFolderTreeCaches

public/js/folderManager.js:792–804  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

790}
791
792export function resetFolderTreeCaches() {
793 _folderCountCache.clear();
794 _inflightCounts.clear();
795 _nonEmptyCache.clear();
796 _childCache.clear();
797 _capViewCache.clear();
798 _capsCache.clear();
799 _capsInflight.clear();
800 try { clearPeekCache(); } catch (e) { /* ignore */ }
801 try { if (window._frPeekCache?.clear) window._frPeekCache.clear(); } catch (e) { /* ignore */ }
802 try { window.folderColorMap = {}; } catch (e) { /* ignore */ }
803 try { window.__FR_COLORS_PROMISE = null; } catch (e) { /* ignore */ }
804}
805
806// Returns true if `folder` has any *unlocked* descendant within maxDepth.
807// Uses listChildren’s locked flag; depth defaults to 2 (fast).

Callers 3

refreshTreeForSourceFunction · 0.85
navigateToSearchResultFunction · 0.85
folderManager.jsFile · 0.85

Calls 1

clearPeekCacheFunction · 0.85

Tested by

no test coverage detected