Fix filter reset, reactivate check for static file in mod_cache_disk_etag

personal/stbuehler/wip
Stefan Bühler 13 years ago
parent b77d9a33b2
commit 616904e00f
  1. 2
      src/main/virtualrequest.c
  2. 4
      src/modules/mod_cache_disk_etag.c

@ -27,7 +27,7 @@ static void filters_reset(liVRequest *vr, liFilters *fs) {
for (i = 0; i < fs->queue->len; i++) {
liFilter *f = (liFilter*) g_ptr_array_index(fs->queue, i);
if (f->handle_free && f->param) f->handle_free(vr, f);
if (i > 0) li_chunkqueue_free(fs->in);
if (i > 0) li_chunkqueue_free(f->in);
g_slice_free(liFilter, f);
}
g_ptr_array_set_size(fs->queue, 0);

@ -328,6 +328,10 @@ static const liPluginSetup setups[] = {
{ NULL, NULL }
};
/* Don't cache static files if filter list is empty */
if (0 == vr->filters_out.queue->len &&
vr->out->is_closed &&
0 == vr->out->mem_usage) return LI_HANDLER_GO_ON;
static void plugin_init(liServer *srv, liPlugin *p) {
UNUSED(srv);

Loading…
Cancel
Save