community: trim premium backend surfaces

This commit is contained in:
a.tolmachev
2026-05-07 20:17:53 +00:00
parent a3d8040ccc
commit 796def4cfd
9 changed files with 27 additions and 803 deletions
+2 -6
View File
@@ -824,12 +824,8 @@ fn response_cache_ttl(operation: &RuntimeOperation) -> Option<Duration> {
return None;
}
let is_cacheable_protocol = match &operation.target {
Target::Rest(target) => target.method == HttpMethod::Get,
Target::Graphql(target) => target.operation_type == crank_core::GraphqlOperationType::Query,
Target::Grpc(target) => target.read_only,
_ => false,
};
let is_cacheable_protocol =
matches!(&operation.target, Target::Rest(target) if target.method == HttpMethod::Get);
if !is_cacheable_protocol {
return None;
}