繁体   English   中英

Wso2 Api Manager中的响应缓存问题

[英]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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM