refactor: remove additional dead exports and unused actions
Remove buildFontUrl, measureText, uncached, invalidateCache, fetchJsonWithFlareSolver, upsertPermission, deletePermission, bulkImportPermissions, clearAllPermissions, bulkDeletePermissions, bulkDeletePhotos, userReplyTicket, closeTicketByUser. Update staff-smoke-contract test for bulkDeletePhotos removal.
This commit is contained in:
1 parent
24bf8eabb9
commit
6a67fb6e83
10 files changed
+3
-187
No files matched your search
@@ -47,15 +47,3 @@ export async function cached<T>(
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
/** Invalidate a single cache key across Redis + memory (call after writes). */
|
||||
export async function uncached(key: string): Promise<void> {
|
||||
memory.delete(key);
|
||||
if (redis && redis.status !== "end") {
|
||||
try {
|
||||
await redis.del(key);
|
||||
} catch {
|
||||
/* non-critical */
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user