MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / clearFavicons

Function clearFavicons

apps/api/src/controllers/misc.controller.ts:398–412  ·  view source on GitHub ↗
(
  request: FastifyRequest,
  reply: FastifyReply,
)

Source from the content-addressed store, hash-verified

396}
397
398export 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
414export async function clearOgImages(
415 request: FastifyRequest,

Callers

nothing calls this directly

Calls 2

getRedisCacheFunction · 0.90
sendMethod · 0.45

Tested by

no test coverage detected