ap_log_error(APLOG_MARK, APLOG_DEBUG | APLOG_NOERRNO, 0, r->server,
"cache: running CACHE_OUT filter");
+ /* XXX: Wouldn't it be better to do read_entity_headers when we
+ * opened the cache entity? This would better accomodate implementations
+ * that stored headers and the entity body in seperate files.
+ */
cache_read_entity_headers(cache->handle, r);
cache_read_entity_body(cache->handle, bb);
/* check first whether running this filter has any point or not */
if(r->no_cache) {
+ ap_remove_output_filter(f);
return ap_pass_brigade(f->next, in);
}
/* default completion is 60% */
#define DEFAULT_CACHE_COMPLETION (60)
-
+#define MAX_URL_LENGTH 1024
#define MSEC_ONE_DAY ((apr_time_t)(86400*APR_USEC_PER_SEC)) /* one day, in microseconds */
#define MSEC_ONE_HR ((apr_time_t)(3600*APR_USEC_PER_SEC)) /* one hour, in microseconds */
#define MSEC_ONE_MIN ((apr_time_t)(60*APR_USEC_PER_SEC)) /* one minute, in microseconds */