]> granicus.if.org Git - apache/commitdiff
Stuff is getting put in the cache. Still not serving out of the cache though.
authorBill Stoddard <stoddard@apache.org>
Thu, 14 Feb 2002 03:27:10 +0000 (03:27 +0000)
committerBill Stoddard <stoddard@apache.org>
Thu, 14 Feb 2002 03:27:10 +0000 (03:27 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93409 13f79535-47bb-0310-9956-ffa450edef68

modules/experimental/mod_disk_cache.c

index 72963f5376891e53f6075a9d09246485ab11733b..7a6c6c2fbdbfd163a0f11a33fa60a218e0959b09 100644 (file)
@@ -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;