chore: reduce viewer cache limit from 5 to 3

This commit is contained in:
Gagancreates 2026-05-08 03:13:17 +05:30
parent d9d936b7e8
commit 0250ca638e

View file

@ -2,7 +2,7 @@ import { useEffect, useState } from 'react'
import { HtmlFileViewer } from './html-file-viewer'
import { PdfFileViewer } from './pdf-file-viewer'
const CACHE_LIMIT = 5
const CACHE_LIMIT = 3
function isCacheable(path: string): boolean {
const lower = path.toLowerCase()