feat: preload manifest for accurate offline caching

This commit is contained in:
catarrh committed 2026-08-04 02:48:11 +03:00
1 parent 9fb4d182e2
commit d1d43a5b57
6 files changed
+4683 -2

No files matched your search

+1 -2
View File
@@ -395,11 +395,10 @@ export class OfflineManager {
/**
* Get cache usage statistics.
*/
static async getStats(): Promise<CacheStats> {
static async getStats(): Promise<CacheStats> {
const estimate = await DataCache.estimate();
const cachedCount = await DataCache.count();
// Determine which languages and types are cached
const cachedLanguages = new Set<string>();
const cachedTypes = new Set<string>();