Hi!
I'm using file caching with nginx-0.7.61 on Windows XP. The caching seems to work fine, but two critical errors appear in error.log:
[code]
2009/09/10 08:45:50 [crit] 376#3288: *6 DeleteFile() "C:\Users\nginx-0.7.61/temp/proxy_temp/4/00/0000000004" failed (2: The system cannot find the file specified) while reading upstream, client: 127.0.0.1, server: localhost, request: "GET /feed/rss.action HTTP/1.0", upstream: "http://127.0.0.1:7080/feed/rss.action", host: "localhost"
2009/09/10 08:45:50 [crit] 376#3288: *6 MoveFile() "C:\Users\nginx-0.7.61/temp/proxy_temp/4/00/0000000004" to "C:/Users/nginx-0.7.61/temp/file-cache/f/4d/19bd8790c7c9c56b20718dd0e5de44df" failed (2: The system cannot find the file specified) while reading upstream, client: 127.0.0.1, server: localhost, request: "GET /feed/rss.action HTTP/1.0", upstream: "http://127.0.0.1:7080/feed/rss.action", host: "localhost"
[/code]
Those are writen every time the cached response has expired and content is fetched from upstream server.
My cache related config looks like this:
[code]
http {
...
proxy_cache_path /Users/nginx-0.7.61/temp/file-cache levels=1:2 keys_zone=cache_zone:10m inactive=1h max_size=10m;
...
}
location /feed/ {
proxy_pass http://localhost:7080;
proxy_cache cache_zone;
proxy_cache_valid 200 5m;
proxy_cache_key $request_uri;
proxy_ignore_headers X-Accel-Expires Cache-Control;
proxy_pass_header Server;
}
[/code]
BR, Osku