January 18, 2010 05:56AM
у меня кешируются наиболее популярные анкеты, т.е. скрипт вычисляет рейтинг и по нему кладет HTML в мемкеш.

возможно схема не идеальна.


location ~ ^/user/(\d+)/?$ {
set $memcached_key "/user/$1";
set $user_id $1;
default_type text/html;

memcached_pass localhost:11211;
error_page 404 @mcu;
}


location @mcu {
fastcgi_pass localhost:9000;
fastcgi_param page user;
fastcgi_param user_id $user_id;
include fastcgi_params;
}

_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

Переименование URI + memcached

kozakd January 18, 2010 05:23AM

Re: Переименование URI + memcached

akalend January 18, 2010 05:56AM

Re: Переименование URI + memcached

akalend January 18, 2010 05:56AM

Re: Переименование URI + memcached

kozakd January 18, 2010 06:10AM

Re: Переименование URI + memcached

squirl January 18, 2010 06:18AM

Re: Переименование URI + memcached

Valery Kholodkov January 18, 2010 06:20AM

Re: Переименование URI + memcached

kozakd January 18, 2010 06:36AM

Re: Переименование URI + memcached

Valery Kholodkov January 18, 2010 07:12AM

Re: Переименование URI + memcached

kozakd January 18, 2010 07:40AM

Re: Переименование URI + memcached

kozakd January 18, 2010 08:22AM

Re: Переименование URI + memcached

kozakd January 19, 2010 04:20AM

Re: Переименование URI + memcached

kozakd January 19, 2010 06:01AM

Re: Переименование URI + memcached

kozakd January 19, 2010 06:29AM

Re: Переименование URI + memcached

kozakd January 19, 2010 06:36AM

Re: Переименование URI + memcached

kozakd January 19, 2010 06:38AM

Re: Переименование URI + memcached

kozakd January 19, 2010 06:54AM

Re: Переименование URI + memcached

kozakd January 19, 2010 07:06AM

Re: Переименование URI + memcached

Valery Kholodkov January 18, 2010 09:24AM

Re: Переименование URI + memcached

Valery Kholodkov January 19, 2010 04:36AM

Re: Переименование URI + memcached

Valery Kholodkov January 19, 2010 06:18AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 118
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready