MCPcopy Create free account
hub / github.com/commontk/CTK / removeCacheEntry

Method removeCacheEntry

Libs/CommandLineModules/Core/ctkCmdLineModuleCache.cpp:165–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165void ctkCmdLineModuleCache::removeCacheEntry(const QUrl& moduleLocation)
166{
167 {
168 QMutexLocker lock(&d->Mutex);
169 d->LocationToTimeStamp.remove(moduleLocation);
170 d->LocationToXmlDescription.remove(moduleLocation);
171 }
172
173 QFile timestampFile(d->timeStampFileName(moduleLocation));
174 if (timestampFile.exists())
175 {
176 timestampFile.remove();
177 }
178 QFile xmlFile(d->xmlFileName(moduleLocation));
179 if (xmlFile.exists())
180 {
181 xmlFile.remove();
182 }
183}
184
185void ctkCmdLineModuleCache::clearCache()
186{

Callers 1

unregisterModuleMethod · 0.80

Calls 4

timeStampFileNameMethod · 0.80
xmlFileNameMethod · 0.80
removeMethod · 0.45
existsMethod · 0.45

Tested by

no test coverage detected