Hacker News new | ask | show | jobs
by rayv 4098 days ago
But if the nginx cache path is set to a tmpfs volume then it's stored in memory and being served from memory.
1 comments

On a machine with enough memory, this is an unnecessary optimization. In most use cases, Nginx will be serving a number of static assets from disk in addition to the cached files, and allowing for more memory to be used on the OS' disk cache will make the entire site more responsive.