Merged in chore/remove-unused-code (pull request #2229)
Remove unused code * Remove unused scandic-web files * Remove unused exports Approved-by: Joakim Jäderberg
This commit is contained in:
@@ -10,13 +10,3 @@ export function getCacheEndpoint(key: string) {
|
||||
|
||||
return url
|
||||
}
|
||||
|
||||
export function getClearCacheEndpoint() {
|
||||
if (!env.REDIS_API_HOST) {
|
||||
throw new Error("REDIS_API_HOST is not set")
|
||||
}
|
||||
|
||||
const url = new URL(`/api/cache/clear`, env.REDIS_API_HOST)
|
||||
|
||||
return url
|
||||
}
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
import { env } from "@/env/server"
|
||||
|
||||
export function shouldHaveFullTtl() {
|
||||
return env.BRANCH === "release"
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
import { cacheLogger } from "@/services/dataCache/logger"
|
||||
|
||||
import { cacheMap } from "./cacheMap"
|
||||
|
||||
export async function deleteAll() {
|
||||
cacheLogger.debug("Deleting all keys")
|
||||
|
||||
cacheMap.clear()
|
||||
}
|
||||
Reference in New Issue
Block a user