Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

rename

Abhinav59ed71cbc8b1
diff --git a/src/services/diskCache.ts b/src/services/diskCache.ts
index cf0093e9a9..8f89a2093d 100644
--- a/src/services/diskCache.ts
+++ b/src/services/diskCache.ts
@@ -32,7 +32,7 @@ export class DiskCache implements LimitedCache {
return new Response(await readFile(cachePath));
} else {
// add fallback for old cache keys
- const oldCachePath = getAssetCachePath(
+ const oldCachePath = getOldAssetCachePath(
this.cacheBucketDir,
cacheKey
);
@@ -55,7 +55,7 @@ export class DiskCache implements LimitedCache {
}
}
-function getAssetCachePath(cacheDir: string, cacheKey: string) {
+function getOldAssetCachePath(cacheDir: string, cacheKey: string) {
// hashing the key to prevent illegal filenames
const cacheKeyHash = crypto
.createHash('sha256')