[英]WSO2 Enterprise Integrator 6.3.0 cache mediator
我正在使用緩存調解器來存儲來自后端的大響應,以便在后續調用中減少時間。 在調用之前,我已經添加了具有此配置的緩存中介:
<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"/>
我已經按照此處的文檔緩存中介完成了此操作
如果我在沒有第二個緩存中介的情況下調用 api,它會回答我但不緩存,如果我用兩個緩存中介調用 api,它就會出錯:
“無法在收集器緩存中處理請求消息”
我錯了什么? 謝謝
當在請求流中定義具有收集器 true 的緩存中介時,會出現此錯誤。 (即緩存收集器在從 ESB 調用后端服務器之前使用)。 請確保流程正確。
如果問題沒有解決,請分享突觸配置,以便我們提供幫助。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.