J
May 28, 2009 03:37PM
Hi,

your system has already a file cache memory. It does the trick.
If you want to use nginx cache capabilities, you can make nginx
reverse proxies all requests to apache (even static ones) and set up a
cache (proxy_cache* directives). But ningx will put cached files on
disk et read them on demand. It will benefits of system cache as well.

I asked myself the same question weeks ago but in my case static files
were not on a local disk but on a NFS shared disk. So I let apache to
serve statiques pages as well and cache them localy.

Hope it helps

2009/5/28 nfn <nginx-forum@nginx.us>:
> 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?
>
> Thanks
>
> N
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?2,2465,2465#msg-2465
>
>
>
Subject Author Posted

cache static content in memory

nfn May 28, 2009 02:54PM

Re: cache static content in memory

J May 28, 2009 03:37PM

Re: cache static content in memory

Cliff Wells May 28, 2009 05:26PM

Re: cache static content in memory

nfn May 29, 2009 12:47PM

Re: cache static content in memory

Igor Sysoev May 29, 2009 01:17PM

Re: cache static content in memory

nfn May 29, 2009 02:06PM

Re: cache static content in memory

Igor Sysoev May 29, 2009 02:37PM

Re: cache static content in memory

nfn May 29, 2009 04:05PM

Re: cache static content in memory

Igor Sysoev May 30, 2009 02:52AM

Re: cache static content in memory

nfn May 30, 2009 09:48AM

Re: cache static content in memory

Igor Sysoev May 30, 2009 03:20PM

Re: cache static content in memory

budala10 February 22, 2010 05:12PM

Re: cache static content in memory

Almir Karic February 22, 2010 09:42PM

Re: cache static content in memory

Ryan Malayter February 24, 2010 12:14AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 123
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready