Is there a way to overcome lag between changes in OneNote client and API results?

懵懂的女人 提交于 2021-02-08 09:25:14

问题


Changes in OneNote client aren't immediately reflected in apigee. For example:

  • Renaming a section in OneNote client. Apigee shows the old name.

  • Adding a section and adding notes to that section in OneNote; these
    aren't reflected in my app that uses the API. As seen below:

Is this a API call caching issue or a known OneNote issue? Whats the recommended way to resolve it? I'm using Superagent and wondering if its no-cache plugin would resolve this.


回答1:


If you add the following header to an API request it seems to reduce the amount of caching that happens.

FavorDataRecency: true

The trade off seems to be a larger overhead for the request and a greater likelihood of triggering throttling (429 errors).
The OneNote team could probably explain this more precisely.




回答2:


EDIT: This option is no longer supported.


Codeye is right - You can use

FavorDataRecency: true

To skip our index. However, the index is refreshed based on changes made to OneNote content, so the delay (if you choose to not use FavorDataRecency) shouldn't be more than a few minutes



来源:https://stackoverflow.com/questions/41172325/is-there-a-way-to-overcome-lag-between-changes-in-onenote-client-and-api-results

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!