<span class="Apple-style-span" style="font-family: Helvetica; font-size: medium; ">Hello all,<br><br>I'm having trouble to have an SSI call beeing evaluated once cached in memecache.<br>For instance.<br><br>When I call the first time the page '/test/' which produce the following html:<br>
'<html><!--# include virtual="/ssi/" --></html>'<br><br>the <!--# include virtual="/ssi/" --> block is replaced by the content of the '/ssi/' page.<br>So the final output is: '<html>SSI</html>'<br>
<br>First call full debug log: <br><a href="http://friendpaste.com/71X0cQMkW4qiS5NCuaDnkv">http://friendpaste.com/71X0cQMkW4qiS5NCuaDnkv</a><br><br><br>But once '/test/' is cached by memcache (cache value is '<html><!--# include virtual="/ssi/" --></html>')<br>
The ssi block is not evaluated end the final output is:<br>'<html><!--# include virtual="/ssi/" --></html>'<br><br>Second 'cached' call debug log: <br><a href="http://friendpaste.com/455AEU8e1Aauv3mU6UQA9D">http://friendpaste.com/455AEU8e1Aauv3mU6UQA9D</a><br>
<br><br>nginx 0.8.34<br>-------------------------------------------<br>upstream gunicorn {<br> server <a href="http://127.0.0.1:8080">127.0.0.1:8080</a>;<br>}<br><br>server {<br> listen 0.0.0.0;<br> server_name localhost;<br>
root /var/www/localhost/htdocs;<br><br> location @python {<br> ssi on;<br> proxy_pass <a href="http://gunicorn/">http://gunicorn</a>; <br> proxy_set_header Host $host;<br> }<br><br><br> location /ssi {<br> proxy_pass <a href="http://gunicorn/">http://gunicorn</a>;<br>
proxy_set_header Host $host;<br> }<br><br> location / {<br> ssi on;<br> set $memcached_key $uri;#$urlmd5;<br> default_type "text/html; charset=utf-8";<br> memcached_pass <a href="http://127.0.0.1:11211">127.0.0.1:11211</a>;<br>
error_page 404 = @python;<br> error_page 502 = @python;<br> }<br>}<br>-------------------------------------------<br><br>Thanks in advance,<br>Xav</span>