MCPcopy Create free account
hub / github.com/TruthHun/BookStack / pruneCache

Function pruneCache

static/vuejs/vue.runtime.common.js:4036–4047  ·  view source on GitHub ↗
(cache, filter)

Source from the content-addressed store, hash-verified

4034}
4035
4036function pruneCache (cache, filter) {
4037 for (var key in cache) {
4038 var cachedNode = cache[key];
4039 if (cachedNode) {
4040 var name = getComponentName(cachedNode.componentOptions);
4041 if (name && !filter(name)) {
4042 pruneCacheEntry(cachedNode);
4043 cache[key] = null;
4044 }
4045 }
4046 }
4047}
4048
4049function pruneCacheEntry (vnode) {
4050 if (vnode) {

Callers 1

Calls 3

getComponentNameFunction · 0.70
pruneCacheEntryFunction · 0.70
filterFunction · 0.50

Tested by

no test coverage detected