From a0a257fe2274a2047c708b34b40e09848f8bad64 Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Wed, 25 Dec 2024 12:19:07 -0600 Subject: [PATCH] fix --- repertory/librepertory/src/app_config.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/repertory/librepertory/src/app_config.cpp b/repertory/librepertory/src/app_config.cpp index 16934afc..1b8c0f11 100644 --- a/repertory/librepertory/src/app_config.cpp +++ b/repertory/librepertory/src/app_config.cpp @@ -23,6 +23,7 @@ #include "events/event_system.hpp" #include "events/events.hpp" +#include "file_manager/cache_size_mgr.hpp" #include "platform/platform.hpp" #include "types/startup_exception.hpp" #include "utils/common.hpp" @@ -1171,6 +1172,7 @@ void app_config::set_low_frequency_interval_secs(std::uint16_t value) { void app_config::set_max_cache_size_bytes(std::uint64_t value) { set_value(max_cache_size_bytes_, value); + cache_size_mgr::instance().shrink(0U); } void app_config::set_max_upload_count(std::uint8_t value) {