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

Function clearFolderSummaryCache

public/js/fileListView.js:3207–3215  ·  view source on GitHub ↗
(folder, sourceId = '')

Source from the content-addressed store, hash-verified

3205}
3206
3207function clearFolderSummaryCache(folder, sourceId = '') {
3208 if (!folder) return;
3209 const prefix = `${folderCacheKey(folder, sourceId)}::`;
3210 for (const key of _folderSummaryCache.keys()) {
3211 if (key === folder || key.startsWith(prefix)) {
3212 _folderSummaryCache.delete(key);
3213 }
3214 }
3215}
3216
3217// --- Folder "peek" cache (first few child folders/files) ---
3218const FOLDER_PEEK_MAX_ITEMS = 6;

Callers 1

fileListView.jsFile · 0.85

Calls 2

folderCacheKeyFunction · 0.85
deleteMethod · 0.45

Tested by

no test coverage detected