【发布时间】:2020-04-06 14:09:37
【问题描述】:
我正在使用缓存中介来存储来自后端的大响应,以便在后续调用中减少时间。 在调用之前,我已经添加了具有此配置的缓存中介:
<cache collector="false" maxMessageSize="100000" timeout="20">
<protocol type="HTTP">
<methods>*</methods>
<headersToExcludeInHash/>
<responseCodes>2[0-9][0-9]</responseCodes>
<enableCacheControl>false</enableCacheControl>
<includeAgeHeader>false</includeAgeHeader>
<hashGenerator>org.wso2.carbon.mediator.cache.digest.HttpRequestHashGenerator</hashGenerator>
</protocol>
<implementation maxSize="100000"/>
</cache>
在回复之前我已经添加了这个
<cache collector="true"/>
我已按照此处Cache Mediator的文档完成此操作
如果我在没有第二个缓存中介的情况下调用 api,它会回答我但不缓存,如果我用两个缓存中介调用 api,它会出错:
“无法在收集器缓存中处理请求消息”
我错了什么? 谢谢你
【问题讨论】:
标签: caching wso2 wso2ei mediator