Fix problem with caching partial responses.

This commit is contained in:
Ara Sadoyan
2026-11-02 17:03:53 +01:00
parent d6936a2a0e
commit de7cc16213
2 changed files with 12 additions and 8 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ pub async fn init_cache(config: Arc<AppConfig>) {
let manager = Manager::new(cache_size);
let _ = EVICTION.set(manager);
GLOBAL_STORAGE.set(Box::new(MemCache::new())).ok();
info!("Cache initialized successfully. Storage: {}", storage);
info!("Cache initialized successfully. Storage: {}, Size: {}mb", storage, size);
}
"redis" => match RedisCache::new(&storage, ttl).await {
Ok(cache) => {