mirror of
https://github.com/lucide-icons/lucide.git
synced 2025-12-23 05:39:23 +01:00
18 lines
452 B
TypeScript
18 lines
452 B
TypeScript
import {fetchTags} from "../src/lib/fetchTags";
|
|
import {fetchIconNodes} from "../src/lib/fetchIconNodes";
|
|
import NextCache from "../src/lib/nextCache";
|
|
|
|
const clearCache = async () => {
|
|
await NextCache.clear('api-tags', 'api-icon-nodes')
|
|
}
|
|
|
|
const buildCache = async () => {
|
|
await Promise.all([fetchTags(), fetchIconNodes()])
|
|
}
|
|
|
|
const rebuildCache = async () => {
|
|
await Promise.all([clearCache(), buildCache()])
|
|
}
|
|
|
|
rebuildCache().then(() => null)
|