* Fixes #7060. * The cached YAML content will now properly reallocate the memory when the clear command is called. Thanks to eppc0330!
@@ -156,6 +156,7 @@ public:
void clear() override{
TypesafeYamlDatabase<keytype, datatype>::clear();
cache.clear();
+ cache.shrink_to_fit();
}
std::shared_ptr<datatype> find( keytype key ) override{