cache static content in memory

Cliff Wells cliff at
Fri May 29 01:26:35 MSD 2009

On Thu, 2009-05-28 at 14:54 -0400, nfn wrote:
> Hi,
> I'm using nginx with apache2 + mod_php.
> Php pages are proxied to apache and nginx handles all static files (css, js, png, jpg, gif).
> I have lots of small files (forum design + smilies) ... 
> Can nginx cache theses files in memory? How?
> If so, do I have any benefit with this approach?
> Is this faster than serving from disk?

You should read this:

It offers a good explanation of why trying to cache files in memory
(beyond what the OS already does) is usually counterproductive.



More information about the nginx mailing list