Rails Rails API 性能优化

ping94 · August 01, 2019 · Last by Choicelin replied at August 02, 2019 · 3481 hits

完整的例子 => 传送门

你这个方案如何处理 cache 更新问题呢,第一张图貌似有点那个意思,但我没看懂

Reply to Choicelin

当数据更新后把对应的 api 的 cache 清除,然后下次 api 请求进来的时候会写入新的 cache

加服务器🤔

@ping94 更新操作清 cache,挺好

ping94 closed this topic. 09 Jun 10:32
ping94 reopened this topic. 09 Jun 10:32
You need to Sign in before reply, if you don't have an account, please Sign up first.