Welcome! Log In Create A New Profile

Advanced

SSI not evaluated in memcache response

Xavier Grangier
March 09, 2010 02:34PM
Hello all,

I'm having trouble to have an SSI call beeing evaluated once cached in
memecache.
For instance.

When I call the first time the page '/test/' which produce the following
html:
'<html><!--# include virtual="/ssi/" --></html>'

the <!--# include virtual="/ssi/" --> block is replaced by the content of
the '/ssi/' page.
So the final output is: '<html>SSI</html>'

First call full debug log:
http://friendpaste.com/71X0cQMkW4qiS5NCuaDnkv


But once '/test/' is cached by memcache (cache value is '<html><!--# include
virtual="/ssi/" --></html>')
The ssi block is not evaluated end the final output is:
'<html><!--# include virtual="/ssi/" --></html>'

Second 'cached' call debug log:
http://friendpaste.com/455AEU8e1Aauv3mU6UQA9D


nginx 0.8.34
-------------------------------------------
upstream gunicorn {
server 127.0.0.1:8080;
}

server {
listen 0.0.0.0;
server_name localhost;
root /var/www/localhost/htdocs;

location @python {
ssi on;
proxy_pass http://gunicorn;
proxy_set_header Host $host;
}


location /ssi {
proxy_pass http://gunicorn;
proxy_set_header Host $host;
}

location / {
ssi on;
set $memcached_key $uri;#$urlmd5;
default_type "text/html; charset=utf-8";
memcached_pass 127.0.0.1:11211;
error_page 404 = @python;
error_page 502 = @python;
}
}
-------------------------------------------

Thanks in advance,
Xav
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

SSI not evaluated in memcache response

Xavier Grangier March 09, 2010 02:34PM

Re: SSI not evaluated in memcache response

Maxim Dounin March 09, 2010 06:44PM

Re: SSI not evaluated in memcache response

xgdlm March 10, 2010 03:34AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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