Skip to content

Commit 02ef480

Browse files
authored
fix: Update timestamp on cache revalidate (renovatebot#36991)
1 parent 0e48cc2 commit 02ef480

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/util/http/cache/abstract-http-cache-provider.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ export abstract class AbstractHttpCacheProvider implements HttpCacheProvider {
8989
logger.debug(
9090
`http cache: Using cached response: ${url} from ${timestamp}`,
9191
);
92+
httpCache.timestamp = new Date().toISOString();
93+
await this.persist(url, httpCache);
94+
9295
HttpCacheStats.incRemoteHits(url);
9396
const cachedResp = copyResponse(
9497
httpCache.httpResponse as HttpResponse<T>,

0 commit comments

Comments
 (0)