Hello!
I have little problem with setting cache live time!
I set it to 10m but after 30 minutes my pages not renewal.
I know that cache will be renewed (yesterday was other cache) but don't know when...
At this time I trying to catch what is caching time.
May be You can help me with this?..
Thanks!!!
-------------------------------
Here is me nginx.conf:
[i]
.........................
proxy_cache_path /var/www/cache levels=1:2 keys_zone=my-cache:20m max_size=1000m inactive=10m;
proxy_temp_path /var/www/cache/tmp;
sendfile on;
keepalive_timeout 0;
aio sendfile;
......................................
server {
listen 80;
server_name server.com;
add_header Cache-Control public;
access_log /var/log/nginx/server-acc.log main;
client_max_body_size 10m;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
location / {
expires 10m;
proxy_pass http://127.0.0.1:8000/; # <-- it's my Apache address
proxy_cache my-cache;
proxy_ignore_headers "Cache-Control" "Expires";
proxy_cache_key "$server_name$scheme$proxy_host$uri$is_args$args$cookie_sid";
proxy_cache_valid 10m;
proxy_cache_valid 404 4m;
}
........................
}
.....................
[/i]