Welcome! Log In Create A New Profile

Advanced

Как создать proxy-cache после выборки из memcached?

June 13, 2012 07:36AM
Привет всем.
Есть такая ситуация.
Существуют картинки, которые лежат в memcached.
nginx получает их с помощью следующего location:
....
location /images/ {
add_header Cache-Control no-cache;
add_header Content-Type image/jpeg;
default_type image/jpeg;

recursive_error_pages on;
set $memcached_key "$uri";
memcached_pass memcached_cluster;
error_page 404 502 504 = @fallback;
}

location @fallback {
proxy_pass http://127.0.0.1:8080;
root /usr/share/nginx/html;
index index.html index.htm;
}

...
*Вопросы:*
Как сделать так, чтобы полученную из memcached картинку, закэшировать на
nginx ?
Куда поместить директиву: proxy_cache ?
Возможно ли вообще кэшировать после memcached ?
_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

Как создать proxy-cache после выборки из memcached?

JohnBat26 June 13, 2012 07:36AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 220
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