diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2020-10-13 13:57:37 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2020-10-19 21:40:14 -0400 |
commit | fe02111888dc75b8a789e92bb5f674f2e1426a00 (patch) | |
tree | 931981f76d8dbfc13a1cdf1a40edcb572bd5ec18 /src/mod_expire.c | |
parent | a46f519eb2e8355221eeeede1b36b7aff0e4a4eb (diff) | |
download | lighttpd-git-fe02111888dc75b8a789e92bb5f674f2e1426a00.tar.gz |
[multiple] stat_cache_path_stat() for struct st
stat_cache_path_stat() for cached (struct st *)
Diffstat (limited to 'src/mod_expire.c')
-rw-r--r-- | src/mod_expire.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mod_expire.c b/src/mod_expire.c index 4ada2a85..cef62d9c 100644 --- a/src/mod_expire.c +++ b/src/mod_expire.c @@ -304,10 +304,10 @@ REQUEST_FUNC(mod_expire_handler) { expires += cur_ts; } else { /* modification */ - stat_cache_entry *sce = stat_cache_get_entry(&r->physical.path); + const stat_cache_st * const st = stat_cache_path_stat(&r->physical.path); /* can't set modification-based expire if mtime is not available */ - if (NULL == sce) return HANDLER_GO_ON; - expires += sce->st.st_mtime; + if (NULL == st) return HANDLER_GO_ON; + expires += st->st_mtime; } /* expires should be at least cur_ts */ |