Cache doesn't count towards a subrequest afaik
Cache doesn't count towards a subrequest afaik




false thoughisInHouse
virtual void newSubrequest(bool isInHouse) = 0;
pls no
kj::Own<CacheClient> IoContext::getCacheClient() {
// TODO(someday): Should Cache API requests be considered in-house? They are already not counted
// as subrequests in metrics and logs (like in-house requests aren't), but historically the
// subrequest limit still applied. Since I can't currently think of a use case for more than 50
// cache API requests per request, I'm leaving it as-is for now.
limitEnforcer->newSubrequest(false);
return getIoChannelFactory().getCache();
}