diff --git a/src/misc/cache.ts b/src/misc/cache.ts
index 356a3de7b9..ccc5f01ff7 100644
--- a/src/misc/cache.ts
+++ b/src/misc/cache.ts
@@ -3,6 +3,7 @@ export class Cache<T> {
 	private lifetime: number;
 
 	constructor(lifetime: Cache<never>['lifetime']) {
+		this.cache = new Map();
 		this.lifetime = lifetime;
 	}