FoxBin
September 24, 2013 02:36AM
Hello list,

I hava a nginx config problem , Please help look !
I use proxy_cache and ssi.

*nginx config :*
ssi on;
ssi_silent_errors on;
ssi_types text/shtml;

proxy_temp_path /cache/proxy_temp;
proxy_cache_path /cache/proxy_cache levels=1:2 keys_zone=tmp_cache:2000m
inactive=10000d max_size=200G;
proxy_next_upstream error timeout invalid_header http_504 http_500
http_502 http_503;


*example:*
*
*
http://x.com/1.shtml:
<html>
hello world1 !
<!--#include virtual="/include/foot.html"-->
<\html>

http://x.com/2.shtml:
<html>
hello world2 !
<!--#include virtual="/include/foot.html"-->
<\html>
.......


http://x.com/include/foot.html:
<html>
old, i am include info !
<\html>


*problem:*
*
*
Edit this file: http://x.com/include/include/foot.html
<html>
new, i am include info !
<\html>

I use ngx_cache_purge to clear the cache :
http://x.com/include/include/foot.html

But do not take effect cache these pages :

open http://x.com/1.shtml
the content is :
<html>
hello world1 !
old, i am include info !
<\html>

open http://x.com/2.shtml
the content is :
<html>
hello world2 !
old, i am include info !
<\html>


I have to clear the cache in order to take effect :
http://x.com/purge/1.shtml
http://x.com/purge/2.shtml


open http://x.com/1.shtml
the content is :
<html>
hello world1 !
new, i am include info !
<\html>

open http://x.com/2.shtml
the content is :
<html>
hello world2 !
new, i am include info !
<\html>


If I have a lot shtml files ,Must be more clear the cache.
http://x.com/purge/1.shtml
http://x.com/purge/2.shtml
http://x.com/purge/3.shtml
http://x.com/purge/4.shtml
http://x.com/purge/5.shtml
http://x.com/purge/6.shtml
.......

I just need to clear a cache: http://x.com/purge/include/foot.html , all
SHTML pages to take effect.
Is there a way to solve?

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

[Ask for help] Questions about proxy_cache and ssi

FoxBin September 24, 2013 02:36AM

Re: [Ask for help] Questions about proxy_cache and ssi

mex September 24, 2013 02:43AM

Re: [Ask for help] Questions about proxy_cache and ssi

foxbin September 24, 2013 04:31AM

Re: [Ask for help] Questions about proxy_cache and ssi

foxbin September 24, 2013 04:10AM

Re: [Ask for help] Questions about proxy_cache and ssi

foxbin September 24, 2013 04:10AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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