mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:47:46 +00:00
ConfigServer: Update the configuration cache on file changes
We were only notifying clients about the change, but didn't actually update the internal cache in ConfigServer itself. Thanks to "The Grey One" for pointing this out. :^)
This commit is contained in:
parent
4bd9ac1f66
commit
317f55bb25
1 changed files with 2 additions and 0 deletions
|
@ -50,6 +50,8 @@ static Core::ConfigFile& ensure_domain_config(String const& domain)
|
|||
}
|
||||
}
|
||||
}
|
||||
// FIXME: Refactor this whole thing so that we don't need a cache lookup here.
|
||||
s_cache.get(domain).value()->config = new_config;
|
||||
};
|
||||
auto cache_entry = make<CachedDomain>(domain, config, watcher_or_error.release_value());
|
||||
s_cache.set(domain, move(cache_entry));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue