We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f24b64a commit 10b136aCopy full SHA for 10b136a
lib/storage/index.ts
@@ -226,6 +226,11 @@ export async function initializeStorage() {
226
})
227
228
const keys = await findStaleKeys(db, { olderThanDays })
229
+ if (keys.length === 0) {
230
+ logger.debug('Prune: No caches to prune')
231
+ return
232
+ }
233
+
234
await driver.delete({
235
objectNames: keys.map((key) => getObjectNameFromKey(key.key, key.version)),
236
0 commit comments