mirror of
https://github.com/twentyhq/twenty.git
synced 2024-11-21 16:12:18 +03:00
Set cache metadata version to infinite TTL (#8507)
## Context To avoid having a corrupt metadata version, we want to remove TTL for that key. ## Test <img width="592" alt="Screenshot 2024-11-15 at 00 02 05" src="https://github.com/user-attachments/assets/9da0ae33-26a8-4e7b-82d0-dd691135a08f">
This commit is contained in:
parent
5384b4aba5
commit
cfe3515aa6
@ -17,6 +17,8 @@ export enum WorkspaceCacheKeys {
|
||||
MetadataVersion = 'metadata:workspace-metadata-version',
|
||||
}
|
||||
|
||||
const TTL_INFINITE = 0;
|
||||
|
||||
@Injectable()
|
||||
export class WorkspaceCacheStorageService {
|
||||
constructor(
|
||||
@ -51,6 +53,7 @@ export class WorkspaceCacheStorageService {
|
||||
return this.cacheStorageService.set<number>(
|
||||
`${WorkspaceCacheKeys.MetadataVersion}:${workspaceId}`,
|
||||
metadataVersion,
|
||||
TTL_INFINITE,
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user