Welcome! Log In Create A New Profile

Advanced

Re[2]: Кеширование

Sergey Bondari
December 27, 2010 10:46AM
Hello SONce,

S> спасибо. с этим понял. Не подскажете как
S> на перле сгенерировать название?

perl_set $BUBUBU '
sub {
use Digest::MD5 qw(md5_hex);
my $uri = $r->uri;
return md5_hex($uri);
}
';

потом как-то так.

location / {
root /root/to/site;
try_files relative/to/cache/$BUBUBU.html @backend;
}

--
Best regards,
Sergey


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

Кеширование

SONce December 24, 2010 03:06AM

Re: Кеширование

Andrew Kopeyko December 24, 2010 03:52AM

Re: Кеширование

SONce December 24, 2010 03:53AM

Re: Кеширование

Andrew Kopeyko December 24, 2010 04:04AM

Re: Кеширование

SONce December 24, 2010 04:05AM

Re: Кеширование

Kruglov Eugenie December 24, 2010 06:54AM

Re[2]: Кеширование

Sergey Bondari December 27, 2010 10:48AM

Re[2]: Кеширование

Sergey Bondari December 27, 2010 10:46AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 69
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready