Add logs to troubleshoot performances issues
This commit is contained in:
@ -13,6 +13,8 @@ export class CacheManager<T> {
|
||||
const [workspaceId] = cacheKey.split('-');
|
||||
|
||||
if (this.cache.has(cacheKey)) {
|
||||
console.log('Cache hit for key:', cacheKey);
|
||||
|
||||
return this.cache.get(cacheKey)!;
|
||||
}
|
||||
|
||||
@ -23,6 +25,7 @@ export class CacheManager<T> {
|
||||
}
|
||||
}
|
||||
|
||||
console.log('Cache miss for key:', cacheKey);
|
||||
const value = await factory();
|
||||
|
||||
if (!value) {
|
||||
|
||||
Reference in New Issue
Block a user