MCPcopy Create free account
hub / github.com/crosspoint-reader/crosspoint-reader / clearBookCache

Function clearBookCache

src/util/BookCacheUtils.cpp:23–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23void clearBookCache(const std::string& path) {
24 if (FsHelpers::hasEpubExtension(path)) {
25 Epub(path, "/.crosspoint").clearCache();
26 } else if (FsHelpers::hasXtcExtension(path)) {
27 Xtc(path, "/.crosspoint").clearCache();
28 } else if (FsHelpers::hasTxtExtension(path)) {
29 Txt(path, "/.crosspoint").clearCache();
30 } else {
31 return;
32 }
33 LOG_DBG("BookCache", "Done checking metadata cache for: %s", path.c_str());
34}

Callers 10

handlePutMethod · 0.85
handleDeleteMethod · 0.85
handleMoveMethod · 0.85
handleUploadMethod · 0.85
handleRenameMethod · 0.85
handleMoveMethod · 0.85
handleDeleteMethod · 0.85
onWebSocketEventMethod · 0.85
downloadBookMethod · 0.85
removeDirFileMethod · 0.85

Calls 7

hasXtcExtensionFunction · 0.85
hasEpubExtensionFunction · 0.50
EpubClass · 0.50
XtcClass · 0.50
hasTxtExtensionFunction · 0.50
TxtClass · 0.50
clearCacheMethod · 0.45

Tested by

no test coverage detected