( request: FastifyRequest, reply: FastifyReply, )
| 396 | } |
| 397 | |
| 398 | export async function clearFavicons( |
| 399 | request: FastifyRequest, |
| 400 | reply: FastifyReply, |
| 401 | ) { |
| 402 | const redis = getRedisCache(); |
| 403 | const keys = await redis.keys('favicon:*'); |
| 404 | |
| 405 | // Delete both the binary data and content-type keys |
| 406 | for (const key of keys) { |
| 407 | await redis.del(key); |
| 408 | await redis.del(`${key}:ctype`); |
| 409 | } |
| 410 | |
| 411 | return reply.status(200).send('OK'); |
| 412 | } |
| 413 | |
| 414 | export async function clearOgImages( |
| 415 | request: FastifyRequest, |
nothing calls this directly
no test coverage detected