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
@@ -44,15 +44,6 @@ export async function cachedQuery<T>(
|
||||
return result;
|
||||
}
|
||||
|
||||
/** Invalidate cache keys matching a glob pattern. */
|
||||
export async function invalidateCache(pattern: string): Promise<number> {
|
||||
if (!isRedisAvailable()) return 0;
|
||||
const r = redis;
|
||||
if (!r) return 0;
|
||||
const keys = await r.keys(pattern);
|
||||
return keys.length > 0 ? r.del(...keys) : 0;
|
||||
}
|
||||
|
||||
/** Invalidate a single cache key immediately. */
|
||||
export async function invalidateKey(key: string): Promise<number> {
|
||||
if (!isRedisAvailable()) return 0;
|
||||
|
||||
Reference in new issue
Block a user