diff options
author | jan <jan@152afb58-edef-0310-8abb-c4023f1b3aa9> | 2005-03-14 12:17:34 +0000 |
---|---|---|
committer | jan <jan@152afb58-edef-0310-8abb-c4023f1b3aa9> | 2005-03-14 12:17:34 +0000 |
commit | 1bb9343d8d897bad9f3c3874c0ff123276560d24 (patch) | |
tree | 5b8a67a1b5b20e129654b431caacde1c582202b5 | |
parent | 49ef06acc475370c10db9de3723887a8c8fe6fdf (diff) | |
download | lighttpd-1bb9343d8d897bad9f3c3874c0ff123276560d24.tar.gz |
get the file-cache-entry yourself
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/post-upload-cleanup@123 152afb58-edef-0310-8abb-c4023f1b3aa9
-rw-r--r-- | src/mod_expire.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mod_expire.c b/src/mod_expire.c index d1ece297..8263f717 100644 --- a/src/mod_expire.c +++ b/src/mod_expire.c @@ -7,6 +7,7 @@ #include "log.h" #include "buffer.h" #include "response.h" +#include "file_cache_funcs.h" #include "plugin.h" @@ -315,7 +316,11 @@ URIHANDLER_FUNC(mod_expire_path_handler) { int ts; time_t t; size_t len; + file_cache_entry *fce = NULL; + if (NULL == (fce = file_cache_get_entry(srv, con->physical.path))) { + file_cache_add_entry(srv, con, con->physical.path, &fce); + } switch(mod_expire_get_offset(srv, p, ds->value, &ts)) { case 0: /* access */ @@ -324,7 +329,7 @@ URIHANDLER_FUNC(mod_expire_path_handler) { case 1: /* modification */ - t = (ts += con->fce->st.st_mtime); + t = (ts += fce->st.st_mtime); break; default: /* -1 is handled at parse-time */ |