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

Function clearOgImages

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

Source from the content-addressed store, hash-verified

412}
413
414export 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
430export async function ping(
431 request: FastifyRequest<{

Callers

nothing calls this directly

Calls 2

getRedisCacheFunction · 0.90
sendMethod · 0.45

Tested by

no test coverage detected