2
0
Fork 0

small stat_cache fix

This commit is contained in:
Thomas Porzelt 2009-03-04 03:44:45 +01:00
parent 4d2cf580df
commit 047bb1f0bd
1 changed files with 1 additions and 1 deletions

View File

@ -209,7 +209,7 @@ static stat_cache_entry *stat_cache_get_internal(vrequest *vr, GString *path, gb
/* cache hit, check state */
if (g_atomic_int_get(&sce->state) == STAT_CACHE_ENTRY_FINISHED) {
/* stat info available, check if it is fresh */
if (sce->ts >= (CUR_TS(vr->con->wrk) - (ev_tstamp)sc->ttl)) {
if (!(sce->type == STAT_CACHE_ENTRY_SINGLE && dir) && sce->ts >= (CUR_TS(vr->con->wrk) - (ev_tstamp)sc->ttl)) {
/* entry fresh */
if (!vr->stat_cache_entry) {
sc->hits++;