Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于禁用缓存的问题 #1

Open
yourtion opened this issue Sep 17, 2015 · 0 comments
Open

关于禁用缓存的问题 #1

yourtion opened this issue Sep 17, 2015 · 0 comments

Comments

@yourtion
Copy link
Member

感觉直接禁用缓存后每次读取文件会有极大的性能问题,太过于简单粗暴。

想到的解决方案:

  1. 添加一个刷新缓存的接口,运行用户在更新配置后刷新缓存;
  2. 使用timeout隔一段时间刷新缓存;
  3. 使用一个子进程,对配置目录中的文件进行md5,监测文件变化,发现变化后刷新缓存

这样会不会更加好一些

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant