From: Bill Stoddard Date: Thu, 14 Feb 2002 03:27:10 +0000 (+0000) Subject: Stuff is getting put in the cache. Still not serving out of the cache though. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=774614a15fc921a0c9872dc32678831324749d0a;p=thirdparty%2Fapache%2Fhttpd.git Stuff is getting put in the cache. Still not serving out of the cache though. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93409 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/experimental/mod_disk_cache.c b/modules/experimental/mod_disk_cache.c index 72963f53768..7a6c6c2fbdb 100644 --- a/modules/experimental/mod_disk_cache.c +++ b/modules/experimental/mod_disk_cache.c @@ -344,7 +344,8 @@ static int create_entity(cache_handle_t *h, request_rec *r, /* open temporary file */ dobj->tempfile = apr_pstrcat(r->pool, conf->cache_root, AP_TEMPFILE, NULL); - rv = apr_file_mktemp(&tmpfile, dobj->tempfile, 0, r->pool); + rv = apr_file_mktemp(&tmpfile, dobj->tempfile, + APR_CREATE | APR_READ | APR_WRITE | APR_EXCL, r->pool); /* Populate the cache handle */ h->cache_obj = obj;