INNER CODE UNIT · JavaScript
invalidateSearchCache
mitre-attack/attack-website · attack-search/src/index.js:110
async function invalidateSearchCache() {
try {
localStorage.removeItem(searchCacheKey);
} catch (error) {
console.error('Failed to remove the search cache marker:', error);
}
try {
await searchService.db.indexeddb.delete();
} catch (error) {
console.error('Failed to delete the cached search index:', error);
}
}
const SEARCH_INDEX_FAILED_MESSAGE = 'The search index could not be built. Reload the page to try again.';
// Initialize the search service
async function initializeSearchService() {