MCPcopy Create free account
hub / github.com/apache/httpd / cachefilehandle

Function cachefilehandle

modules/cache/mod_file_cache.c:206–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204}
205
206static const char *cachefilehandle(cmd_parms *cmd, void *dummy, const char *filename)
207{
208#if APR_HAS_SENDFILE
209 cache_the_file(cmd, filename, 0);
210#else
211 /* Sendfile not supported by this OS */
212 ap_log_error(APLOG_MARK, APLOG_WARNING, 0, cmd->server, APLOGNO(00800)
213 "unable to cache file: %s. Sendfile is not supported on this OS", filename);
214#endif
215 return NULL;
216}
217static const char *cachefilemmap(cmd_parms *cmd, void *dummy, const char *filename)
218{
219#if APR_HAS_MMAP

Callers

nothing calls this directly

Calls 2

cache_the_fileFunction · 0.85
ap_log_errorFunction · 0.50

Tested by

no test coverage detected