( request: FastifyRequest, reply: FastifyReply, )
| 412 | } |
| 413 | |
| 414 | export async function clearOgImages( |
| 415 | request: FastifyRequest, |
| 416 | reply: FastifyReply, |
| 417 | ) { |
| 418 | const redis = getRedisCache(); |
| 419 | const keys = await redis.keys('og:*'); |
| 420 | |
| 421 | // Delete both the binary data and content-type keys |
| 422 | for (const key of keys) { |
| 423 | await redis.del(key); |
| 424 | await redis.del(`${key}:ctype`); |
| 425 | } |
| 426 | |
| 427 | return reply.status(200).send('OK'); |
| 428 | } |
| 429 | |
| 430 | export async function ping( |
| 431 | request: FastifyRequest<{ |
nothing calls this directly
no test coverage detected