Time-of-day caching?

Flavio Torres fla_torres at yahoo.com.br
Mon Feb 28 23:32:13 MSK 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 02/28/2011 04:53 PM, Brent wrote:
> So: I need those pages/files to be flushed from the
> cache the moment they change, while everything else is cached more
> aggressively.
>

You can do this with Expires header.

> I haven't found a good solution for this with WordPress plug-ins such as
> SuperCache -- they seem to be too "all-or-nothing", flushing too much or
> too little.
>

SuperCache will create static files from your dynamic pages or "posts"
and everything else is configured by Expires.

I'm not nginx guru, but I've this setup:

- - Varnish as cache
- - nginx as webserver with spawn-fcgi

* "static files generated by SuperCache": posts.html with 10 minuts of
Expires
*  static files: images, js and everything else with 'max'

http://pastebin.com/jfy9GgkN

Hope this helps.





-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1sBkkACgkQNRQApncg297GMQCgkd6DScym6Q2EXipM1+rg18Sd
9u0An1NqXlXsKdg+tZcytMZzqMUOfnXF
=hdPD
-----END PGP SIGNATURE-----




More information about the nginx mailing list