--- lbbs/include/article_cache.h 2025/11/04 14:58:55 1.10 +++ lbbs/include/article_cache.h 2026/01/03 10:27:14 1.12 @@ -3,7 +3,7 @@ * article_cache * - convert article content from DB to local cache with LML conversion and line offset index * - * Copyright (C) 2004-2025 Leaflet + * Copyright (C) 2004-2026 Leaflet */ #ifndef _ARTICLE_CACHE_H_ @@ -13,6 +13,11 @@ #include "section_list.h" #include "str_process.h" +enum article_cache_constant_t +{ + ARTICLE_CONTENT_MAX_LEN = 1024 * 1024 * 4, // 4MB +}; + struct article_cache_t { void *p_mmap;