|
|
|
|
АРХИВ :: nginx-ru
|
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Кеширова?сов
- To: nginx-ru@xxxxxxxxx
- Subject: Re: Кеширова?сов
- From: Dmitry Koterov <dmitry@xxxxxxxxxx>
- Date: Wed, 7 Oct 2009 20:51:59 +0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:reply-to:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=AiBBmZ4Qv+53vWmZWa0SLwJFErhjRQIsCNaStDXubBc=; b=BZSoN8/VI4Xm82PQI5fjbIhwN/4StJwi6iTjrMbLhPDsFRFQbPqjpPfO1CCyQeAPeP uu6jCdd2B2rlpJTWmiB8fFmGLPtfbKV2JKs/k2C2U72EaGoRM5IbqVZo1B6YF5dXPaUF Af7O103dAzHn6t0gtimcLWpVcwcOkeNud5BBg=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:reply-to:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; b=G3w2SU5Q7CD4kFLqAc9K/UPiTPOUQZzxky44vFCTlh/OQgguGQ5xS5U5E1OOxK00Qq g2tEkLqq/28RUlLqNTKpH3ywQXlVRFa/2zvA7uUtKUyBTwsAZglKPSSjfy99cgHlO0cP T6UOUC52IWUfdXyH2cMmiKIVxSEMe113aV1NM=
- In-reply-to: <4ACB370A.7070006@xxxxxxx>
- References: <20091006112411.GK90053@xxxxxxxxxxxxx> <93608258608a00a97fe6dc67e1f24959.NginxMailingListRussian@xxxxxxxxxxxxxxx> <4ACB370A.7070006@xxxxxxx>
Я смог придумать только такое:
location ~ ^(какие-урлы-кэшировать)$ { set $test_cache_on "$cookie_debugMode$arg_nc$еще_что_должно_быть_пусто";
if ($test_cache_on = "") { rewrite .* /php_cache last;
} rewrite ^(.*)$ /index.php?$1 last;
}
location /php_cache_rotate {
internal; fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root/index.php; include fastcgi_params;
fastcgi_cache your_zone; fastcgi_cache_valid 60m;
fastcgi_cache_key "host=$host|uri=$request_uri|еще-от-чего-зависит-кэш"; }
Если есть более оптимальные варианты, буду рад услышать.
|
|
|