MCPcopy Create free account
hub / github.com/apache/trafficserver / CB_cmd_cache_clear

Function CB_cmd_cache_clear

src/traffic_server/traffic_server.cc:846–856  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

844}
845
846void
847CB_cmd_cache_clear()
848{
849 if (cacheProcessor.IsCacheEnabled() == CACHE_INITIALIZED) {
850 Note("CLEAR, succeeded");
851 ::exit(0);
852 } else if (cacheProcessor.IsCacheEnabled() == CACHE_INIT_FAILED) {
853 Note("unable to open Cache, CLEAR failed");
854 ::exit(1);
855 }
856}
857
858void
859CB_cmd_cache_check()

Callers

nothing calls this directly

Calls 1

IsCacheEnabledMethod · 0.80

Tested by

no test coverage detected