Skip to content

Commit 46ac71d

Browse files
committed
fix(docker): Memory caching for manifest requests
1 parent 68cb386 commit 46ac71d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/modules/datasource/docker/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { logger } from '../../../logger';
55
import { ExternalHostError } from '../../../types/errors/external-host-error';
66
import { cache } from '../../../util/cache/package/decorator';
77
import { HttpError } from '../../../util/http';
8+
import { memCacheProvider } from '../../../util/http/cache/memory-http-cache-provider';
89
import type { HttpResponse } from '../../../util/http/types';
910
import { hasKey } from '../../../util/object';
1011
import { regEx } from '../../../util/regex';
@@ -123,6 +124,7 @@ export class DockerDatasource extends Datasource {
123124
const manifestResponse = await this.http[mode](url, {
124125
headers,
125126
noAuth: true,
127+
cacheProvider: memCacheProvider,
126128
});
127129
return manifestResponse;
128130
} catch (err) /* istanbul ignore next */ {

0 commit comments

Comments
 (0)