Skip to content

Commit cbb45fa

Browse files
committed
fix: do not use query cache during deployment to avoid issues caused by a stale cache
1 parent 757783d commit cbb45fa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/vlocity-deploy/src/datapackDeployer.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export class DatapackDeployer {
138138
* @returns Datapack deployment object
139139
*/
140140
public async createDeployment(datapacks: VlocityDatapack[], options?: DatapackDeploymentOptions, cancellationToken?: CancellationToken) {
141-
this.container.register(this.container.create(QueryService, this.connectionProvider).setCacheDefault(true));
141+
this.container.register(this.container.create(QueryService, this.connectionProvider).setCacheDefault(false));
142142
const deployment = this.container.create(DatapackDeployment, options);
143143
const recordFactory = this.container.create(DatapackRecordFactory);
144144

packages/vscode-extension/src/lib/vlocity/vlocityToolsDeploy.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export class VlocodeDirectDeployment implements VlocityDeploy {
2020
const deployment = await this.datapackDeployer.createDeployment(datapacks, {
2121
// TODO: allow user to override these from options
2222
strictDependencies: true,
23-
purgeMatchingDependencies: true,
23+
purgeMatchingDependencies: false,
2424
lookupFailedDependencies: true,
2525
continueOnError: true,
2626
maxRetries: 1,

0 commit comments

Comments
 (0)