httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stodd...@apache.org
Subject cvs commit: httpd-2.0/modules/experimental mod_cache.c
Date Fri, 24 Sep 2004 13:15:24 GMT
stoddard    2004/09/24 06:15:24

  Modified:    modules/experimental Tag: APACHE_2_0_BRANCH mod_cache.c
  Log:
  Fix up some comments in CACHE_SAVE filter and fix a minor style nit.
    No functional changes.
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.64.2.16 +10 -5     httpd-2.0/modules/experimental/mod_cache.c
  
  Index: mod_cache.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/experimental/mod_cache.c,v
  retrieving revision 1.64.2.15
  retrieving revision 1.64.2.16
  diff -u -r1.64.2.15 -r1.64.2.16
  --- mod_cache.c	24 Sep 2004 13:07:27 -0000	1.64.2.15
  +++ mod_cache.c	24 Sep 2004 13:15:24 -0000	1.64.2.16
  @@ -236,12 +236,15 @@
    * ---------------
    *
    * Decide whether or not this content should be cached.
  - * If we decide no it should:
  + * If we decide no it should not:
    *   remove the filter from the chain
    * If we decide yes it should:
  - *   pass the data to the storage manager
  - *   pass the data to the next filter (the network)
  - *
  + *   Have we already started saving the response?
  + *      If we have started, pass the data to the storage manager via store_body
  + *      Otherwise:
  + *        Check to see if we *can* save this particular response.
  + *        If we can, call cache_create_entity() and save the headers and body
  + *   Finally, pass the data to the next filter (the network or whatever)
    */
   
   static int cache_save_filter(ap_filter_t *f, apr_bucket_brigade *in)
  @@ -447,6 +450,8 @@
           /* ship the data up the stack */
           return ap_pass_brigade(f->next, in);
       }
  +
  +    /* Make it so that we don't execute this path again. */
       cache->in_checked = 1;
   
       /* Set the content length if known. 
  @@ -636,7 +641,7 @@
       info->content_type = apr_pstrdup(r->pool, r->content_type);
       info->etag = apr_pstrdup(r->pool, etag);
       info->lastmods = apr_pstrdup(r->pool, lastmods);
  -    info->filename = apr_pstrdup(r->pool, r->filename );
  +    info->filename = apr_pstrdup(r->pool, r->filename);
   
       /*
        * Write away header information to cache.
  
  
  

Mime
View raw message