From 774614a15fc921a0c9872dc32678831324749d0a Mon Sep 17 00:00:00 2001 From: Bill Stoddard Date: Thu, 14 Feb 2002 03:27:10 +0000 Subject: [PATCH] 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 --- modules/experimental/mod_disk_cache.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/experimental/mod_disk_cache.c b/modules/experimental/mod_disk_cache.c index 72963f5376..7a6c6c2fbd 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; -- 2.40.0