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

feature: Cache for the file handler to avoid stat()ing on every request #33

Open
MalloZup opened this issue Jul 8, 2019 · 1 comment

Comments

@MalloZup
Copy link
Contributor

MalloZup commented Jul 8, 2019

This issue comes from readme.md.

@krig you migh add some infos details about it. 🚀

@krig
Copy link
Contributor

krig commented Jul 9, 2019

The idea is to add some kind of bounded in-memory cache for static files, to avoid having to go touch the filesystem for the file on every request. Especially on a file system which updates access time, it should add a bit of performance. On the other hand, caches are complicated and it can be confusing if the api server serves a cached copy instead of a file that has changed on disk, so some care has to be taken.

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

2 participants