Skip to content

Commit

Permalink
fix: add cacheDirectory to clearCacheById function
Browse files Browse the repository at this point in the history
  • Loading branch information
khalilou88 committed Oct 8, 2024
1 parent 855c826 commit 247a940
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/nx-maven/src/graph/graph-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,10 @@ export interface WorkspaceDataType {
}

const cacheId = 'workspace-data.json';
const cacheDirectory = path.join(workspaceDataDirectory, 'nx-maven');
const cache = flatCache.create({
cacheId: cacheId,
cacheDir: path.join(workspaceDataDirectory, 'nx-maven'),
cacheDir: cacheDirectory,
ttl: 60 * 60 * 1000,
});
const key = 'workspace-data';
Expand Down Expand Up @@ -103,7 +104,7 @@ export function getCachedWorkspaceData() {
}

export function removeWorkspaceDataCache() {
flatCache.clearCacheById(cacheId);
flatCache.clearCacheById(cacheId, cacheDirectory);
}

export function addProjects(
Expand Down

0 comments on commit 247a940

Please sign in to comment.