SSI not evaluated in memcache response

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:
‘’

the block is replaced by the content
of
the ‘/ssi/’ page.
So the final output is: ‘SSI’

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

But once ‘/test/’ is cached by memcache (cache value is ‘’)
The ssi block is not evaluated end the final output is:
‘’

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

Hello!

On Tue, Mar 09, 2010 at 08:27:52PM +0100, Xavier G. wrote:

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

[…]

location / {
ssi on;
set $memcached_key $uri;#$urlmd5;
default_type “text/html; charset=utf-8”;

  • default_type “text/html; charset=utf-8”;
  • default_type text/html;
  • charset utf-8;

[…]

Maxim D.

Hello,

  • default_type “text/html; charset=utf-8”;
  • default_type text/html;
  • charset utf-8;

thanks !

xav