a cache for slack profile pictures and emojis

chore: remove daily cache purge

dunkirk.sh 1d4774ed a48cad4f

verified
Changed files
-14
src
-14
src/index.ts
···
}
}, 60 * 1000); // Check every minute
-
// Hourly purge of specific user cache
-
const hourlyUserPurge = setInterval(async () => {
-
const now = new Date();
-
if (now.getMinutes() === 5) {
-
const userId = "U062UG485EE";
-
console.log(`Purging cache for user ${userId}`);
-
const result = await cache.purgeUserCache(userId);
-
console.log(
-
`Cache purge for user ${userId}: ${result ? "successful" : "no cache entry found"}`,
-
);
-
}
-
}, 60 * 1000); // Check every minute
-
// Clean up on process exit
process.on("exit", () => {
clearInterval(dailyPurge);
-
clearInterval(hourlyUserPurge);
});
}