Hello Everyone! First time E-mailer with a small question I hope
someone could answer for me.
I’ve searched through google for my answers but i haven’t found
anything that tells me what i’m doing wrong…
So I have a test setup that has a Dynamic node and an edge node. The
single point CDN is up and working (thanks to a ton of help my a buddy
of mine). But one issue i’ve seen is that in our tests, even after
specifying a month for a cache time, the server still seems to delete
the cache when i come back around 24 hours later.
The goal of the long cache time is that I’d like to create a CDN
platform that I could let users stream video files that are >100MB…
The video files would obviously not be changing within a year (let
alone a month)… So one of my thoughts is that the size of the files
are the reason for the deletion of the Cached content…
My apologies for any stupid questions, i’ve been working on this for
the last few months and finally just decided to email the list to see
if anyone would be able to help…
The configuration of the edge node for the proxy cache for the server
block is as follow…
location / {
proxy_pass http://static.mysite.com;
proxy_cache site-cdn;
proxy_cache_valid 200 302 301 any 365d;
proxy_cache_use_stale updating;
proxy_temp_path /var/www/cdn/site/temp;
proxy_buffering on;
}
Thank you for any help! I truly appreciate it!
-Brad
Show us the conf line where the cache is defined
Sent from my iPhone
Quoting Richard K. [email protected]:
Show us the conf line where the cache is defined
Sent from my iPhone
Hey Richard,
Here is the full nginx.conf file >.<
user nobody;
worker_processes 4;
error_log logs/error.log notice;
pid logs/nginx.pid;
events {
worker_connections 1024;
}
http {
proxy_cache_path /var/www/cdn/site/cache levels=1:2
keys_zone=site-cdn:8m max_size=1000m inactive=600m;
proxy_temp_path /var/www/cdn/site/temp;
open_file_cache max=1000 inactive=300s;
open_file_cache_valid 360s;
open_file_cache_min_uses 2;
open_file_cache_errors off;
include mime.types;
include fastcgi.conf;
include proxy.conf;
sendfile on;
keepalive_timeout 65;
log_format main ‘$remote_addr - $remote_user [$time_local]
“$request” $status $body_bytes_sent “$http_referer” “$http_user_agent”
“$http_x_forwarded_for”’;
upstream static.site.com {
server xx.xx.xx.xx:80;
}
server {
listen 80;
server_name static.site.com;
location / {
proxy_pass http://static.site.com;
proxy_cache site-cdn;
proxy_cache_valid 200 302 301 any 365d;
proxy_cache_use_stale updating;
proxy_temp_path /var/www/cdn/site/temp;
proxy_buffering on;
}
}
inactive=600m;
This deletes files after 600 minutes if it wasn’t accessed in that time
Increase it 
Sent from my iPhone
On 13 Jul 2011, at 20:16,
“[email protected]mailto:[email protected]”
<[email protected]mailto:[email protected]> wrote:
inactive=600m;
My hero… Thanks so much Richard!!!
Brad R.
Systems Engineer / AnimeFTW.tv Site Admin
FTW Entertainment LLC
From: Richard K. [mailto:[email protected]]
Sent: Wednesday, July 13, 2011 9:40 PM
To: [email protected]
Subject: Re: Caching question for large (ish) file
inactive=600m;
This deletes files after 600 minutes if it wasn’t accessed in that time
Increase it 
Sent from my iPhone
On 13 Jul 2011, at 20:16, “[email protected]”
[email protected] wrote:
inactive=600m;