[英]Response cache issue in Wso2 Api Manager
我在配置響應緩存時遇到問題。
我已使用以下鏈接https://docs.wso2.com/display/AM200/Configuring+Caching在本地系統上配置了響應緩存。 但是當我從其他客戶端發出API請求時,它仍然向后端服務器(舊版應用程序)發送請求。 我正在使用WSO2 API Manager 2.x.
謝謝Raju K.
它應該工作。 確保在該特定API的發布者UI中啟用了Response Caching
。 要確認它已正確完成,請查看repository/deployment/server/synapse-configs/default/api/
中的API synapse文件。 它應該有像這樣的緩存中介。
<cache scope="per-host"
collector="false"
hashGenerator="org.wso2.caching.digest.REQUESTHASHGenerator"
timeout="300">
<implementation type="memory" maxSize="500"/>
</cache>
我更改了api_home \\ repository \\ resources \\ api_templates \\ velocity_template.xml中的代碼
現在它工作正常。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.