Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
forgetComponent(name, isMU = true) {
const cacheKey = this.get('iterationId') + '/' + name + '/' + isMU;
if (FORGET_CACHE.includes(cacheKey)) {
return;
}
if (isMU) {
const muNames = this.getPossibleMUComponentNames(name);
muNames.forEach((possibleMuName)=>{
clearContainerCache(this, possibleMuName);
});
}
clearContainerCache(this, name);
FORGET_CACHE.push(cacheKey);
},
clearRequirejs(name) {
muNames.forEach((possibleMuName)=>{
clearContainerCache(this, possibleMuName);
});
}