fix(pdf): avoid frequent eviction of chunk cache from worker thread, closes #2757 (#2759)

This commit is contained in:
Huang Xin
2025-12-22 00:47:41 +08:00
committed by GitHub
parent 9358a06839
commit 4b4ebdbdaa
+1 -1
View File
@@ -253,7 +253,7 @@ export class RemoteFile extends File implements ClosableFile {
#order: number[] = [];
static MAX_CACHE_CHUNK_SIZE = 1024 * 128;
static MAX_CACHE_ITEMS_SIZE: number = 10;
static MAX_CACHE_ITEMS_SIZE: number = 256;
constructor(url: string, name?: string, type = '', lastModified = Date.now()) {
const basename = url.split('/').pop() || 'remote-file';