From 861d4e432a8da621c1ef44a5f737dcbe69bc2007 Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Sat, 3 Sep 2022 12:34:49 -0700 Subject: [PATCH] reduce bb file cache timeout --- src/ServerState.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ServerState.cc b/src/ServerState.cc index a46d7ca0..50e3b2b3 100644 --- a/src/ServerState.cc +++ b/src/ServerState.cc @@ -473,7 +473,7 @@ shared_ptr ServerState::load_bb_file( // Finally, look in system/blueburst const string& effective_bb_directory_filename = bb_directory_filename.empty() ? patch_index_filename : bb_directory_filename; - static FileContentsCache cache(60 * 60 * 1000 * 1000); // 1 hour + static FileContentsCache cache(10 * 60 * 1000 * 1000); // 10 minutes try { auto ret = cache.get_or_load("system/blueburst/" + effective_bb_directory_filename); static_game_data_log.info("Loaded %s", effective_bb_directory_filename.c_str());