According to Nginx cached files are delete based on "inactive" so expired cached files based on Expires Header or proxy_cache_valid don't get deleted until "inactive" expires and in between if the page is visited the "inactive" resets.
In the Cpanel NGINX with Reverse Proxy set up there's something that keeps deleting the cached files I would say after around 6 , 12 or up to 24 hours not honoring my "inactive_time" : "14400m", (10 days) here /etc/nginx/ea-nginx/cache.json that is correctly added by cpanel to each individual username conf file as part of proxy_cache_path.
I know, for example, that cpanel has some sort of task that overwrites username conf files and it seems there's a similar task (or tasks) run once or twice a day approximately that is deleting my cached files overwriting my nginx inactive=14400m ( I also tried inactive=10d in days instead of minutes same problem)
Could Cpanel share what are the events that trigger the deleting of all cached files everyday? Or if there's some sort of maximum imposed?
In my /etc/nginx/ea-nginx/cache.json I have "zone_size" : "200000m" which is 200gb per user, plenty, more than enough. I tried adding Nginx max_size , but is not considered by Cpanel NGINX with Reverse Proxy, but based on Nginx guidelines if no max_size is included Nginx won't impose a limit until the disk is full, so files don't get deleted until that point which is not by far the case.
There's definitely something that Cpanel is doing based on a task cron or so that deletes all files regardless of "inactive" which becomes a big problem specially when you have a big site with many cached files, sharing what are those tasks in which Cpanel will delete the entire cache will be very useful to know.
Thanks,
In the Cpanel NGINX with Reverse Proxy set up there's something that keeps deleting the cached files I would say after around 6 , 12 or up to 24 hours not honoring my "inactive_time" : "14400m", (10 days) here /etc/nginx/ea-nginx/cache.json that is correctly added by cpanel to each individual username conf file as part of proxy_cache_path.
I know, for example, that cpanel has some sort of task that overwrites username conf files and it seems there's a similar task (or tasks) run once or twice a day approximately that is deleting my cached files overwriting my nginx inactive=14400m ( I also tried inactive=10d in days instead of minutes same problem)
Could Cpanel share what are the events that trigger the deleting of all cached files everyday? Or if there's some sort of maximum imposed?
In my /etc/nginx/ea-nginx/cache.json I have "zone_size" : "200000m" which is 200gb per user, plenty, more than enough. I tried adding Nginx max_size , but is not considered by Cpanel NGINX with Reverse Proxy, but based on Nginx guidelines if no max_size is included Nginx won't impose a limit until the disk is full, so files don't get deleted until that point which is not by far the case.
There's definitely something that Cpanel is doing based on a task cron or so that deletes all files regardless of "inactive" which becomes a big problem specially when you have a big site with many cached files, sharing what are those tasks in which Cpanel will delete the entire cache will be very useful to know.
Thanks,