fix slop cache

This commit is contained in:
localhost 2026-03-04 07:14:26 +01:00
parent 9f760718f0
commit ae502f4c6c
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ async function parseSlop(id: string, title: string, description: string, channel
if (channelBlacklist.includes(channelId)) return true;
const cachedSlop = await redis.get(`slop:${id}`)
if (cachedSlop) return Boolean(cachedSlop)
if (cachedSlop) return cachedSlop == 'true' ? true : false
const { is_slop, reasoning } = await analyseSlop(id , title, description)
if (reasoning != 'failed to parse') await redis.set(`slop:${id}`, is_slop.toString(), 'EX', 60 * 60 * 24 * 7)