minor fix on memory response cache

This commit is contained in:
Ara Sadoyan
2026-07-20 13:37:10 +02:00
parent b73ccc527f
commit b55ff2d392
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ impl ProxyHttp for LB {
let cc = CacheControl::from_resp_headers(resp);
let defaults = CacheMetaDefaults::new(
|status| {
if status.as_u16() == 200 {
if status == StatusCode::OK {
Some(Duration::from_secs(*CACHE_TTL.get().unwrap_or(&60)))
} else {
None