refactor: enhance file handling and metrics tracking; remove unused bot health tracker
This commit is contained in:
@@ -71,15 +71,4 @@ export const fileInfoCache = new Cache<{
|
||||
bot_token: string;
|
||||
}>(3600);
|
||||
|
||||
// Cleanup expired cache entries every 5 minutes
|
||||
setInterval(
|
||||
() => {
|
||||
const removed = fileInfoCache.cleanup();
|
||||
if (removed > 0) {
|
||||
console.log(`Cleaned up ${removed} expired cache entries`);
|
||||
}
|
||||
},
|
||||
5 * 60 * 1000,
|
||||
);
|
||||
|
||||
export { Cache };
|
||||
|
||||
Reference in New Issue
Block a user