deleteFieldDetectionCacheForUrl function infrastructure exported ✓ 100.0%

Last updated: 2026-02-24T21:07:57.500Z

Metrics

LOC: 9 Complexity: 1 Params: 2 Coverage: 100.0% (2/2 lines, 1x executed)

Signature

deleteFieldDetectionCacheForUrl( url: string, ): : Promise<void>

Summary

Deletes the cached detection result for a specific URL.

Tags

#@param url - Full page URL to remove from cache

Source Code

export async function deleteFieldDetectionCacheForUrl(
  url: string,
): Promise<void> {
  await updateStorageAtomically(
    STORAGE_KEYS.FIELD_CACHE,
    [] as FieldDetectionCacheEntry[],
    (current) => current.filter((entry) => entry.url !== url),
  );
}

Dependencies (Outgoing)

graph LR deleteFieldDetectionCacheForUrl["deleteFieldDetectionCacheForUrl"] updateStorageAtomically["updateStorageAtomically"] deleteFieldDetectionCacheForUrl -->|calls| updateStorageAtomically style deleteFieldDetectionCacheForUrl fill:#dbeafe,stroke:#2563eb,stroke-width:2px click deleteFieldDetectionCacheForUrl "209937c4802c2009.html" click updateStorageAtomically "bf2f57323401fa98.html"
TargetType
updateStorageAtomically calls

Impact (Incoming)

graph LR deleteFieldDetectionCacheForUrl["deleteFieldDetectionCacheForUrl"] handle["handle"] handle -->|uses| deleteFieldDetectionCacheForUrl style deleteFieldDetectionCacheForUrl fill:#dbeafe,stroke:#2563eb,stroke-width:2px click deleteFieldDetectionCacheForUrl "209937c4802c2009.html" click handle "8b929c06f047f82c.html"
SourceType
handle uses