diff --git a/tempesta_fw/cache.c b/tempesta_fw/cache.c index cc82374641..4ef88bf499 100644 --- a/tempesta_fw/cache.c +++ b/tempesta_fw/cache.c @@ -383,8 +383,10 @@ tfw_cache_resp_is_stale(TfwHttpResp *resp) bool r = false; - - r = (tfw_cache_calc_lifetime(resp) >= jiffies); + TFW_DBG("stale:lifetime:%lu\n", tfw_cache_calc_lifetime(resp)); + TFW_DBG("stale:jiff:%lu\n", jiffies); + r = (tfw_cache_calc_lifetime(resp) < jiffies); + TFW_DBG("stale:is_stale:r:%d\n", r); return r; } /*