MCPcopy Create free account
hub / github.com/DFHack/dfhack / clear_caches

Function clear_caches

plugins/blueprint.cpp:225–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223}
224
225static void clear_caches() {
226 string_cache.clear();
227 engravings_cache.clear();
228 dig_job_cache.clear();
229 warm_config = PersistentDataItem();
230 damp_config = PersistentDataItem();
231}
232
233// We use const char * throughout this code instead of std::string to avoid
234// having to allocate memory for all the small string literals. This

Callers 1

do_blueprintFunction · 0.70

Calls 2

PersistentDataItemFunction · 0.85
clearMethod · 0.45

Tested by

no test coverage detected