S
S
StopDesign2011-02-16 18:50:15
Nginx
StopDesign, 2011-02-16 18:50:15

Caching in nginx?

It is necessary to use nginx to cache the address with and without get-parameters for different times:
/path/ - for 10 seconds;
/path/?something - for a day.
The cache keys must also be different (but everything is clear with this).
Can it be done? Nginx is built with the perl module. Proxy_cache is used.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan, 2011-02-16
@iSage

Well, make two zones with different lifetimes, and make proxy_cache with the desired zone by location.

Z
zizop, 2011-02-17
@zizop

Yes, you can. Here is an option with saving cached data by a web application and reading it by Nginx: Zend_Cache_Frontend_Page, Nginx and Memcached integration ,
Page caching in memcached and nginx (nginx web memcached cache speed)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question