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)
| Target | Type |
|---|---|
| updateStorageAtomically | calls |
Impact (Incoming)
| Source | Type |
|---|---|
| handle | uses |