MCPcopy Create free account
hub / github.com/chigraph/chigraph / invalidateCache

Method invalidateCache

libchigraph/src/ModuleCache.cpp:63–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63void ModuleCache::invalidateCache(const boost::filesystem::path& moduleName) {
64 assert(!moduleName.empty() && "Cannot pass empty path to ModuleCache::invalidateCache");
65
66 auto cachePath = cachePathForModule(moduleName);
67
68 boost::filesystem::remove(cachePath);
69}
70
71std::time_t ModuleCache::cacheUpdateTime(const boost::filesystem::path& moduleName) const {
72 return boost::filesystem::last_write_time(cachePathForModule(moduleName));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected