Mak3000

Member
Dec 3, 2008
6
0
51
Hello,

I'm using cPanel Nginx to serve big static files, It was working fine until today, I found huge folder usage for nginx cache!
I delete it, but it comes again, Nginx copies all website large static files as cache!!

I searched to disable cache, and applied that tutorial How To Disable NGINX Cache - Ubiq Tech Blog
But it still making cache and HDD always 100% due to copies large file.

Any help to disable cache?

Thanks in advance.
 
Last edited by a moderator:

Mak3000

Member
Dec 3, 2008
6
0
51
Hey there! In order to get you more details on this, can you let me know the path of the folder that is being filled with files? That will give me more details on what may be causing the issue.
The whole site is about static files which serve a mobile application, all files are in many folders in public_html directory
Cache files are here:
/var/cache/nginx/proxy_temp
/var/cache/ea-nginx/proxy/username
 
Last edited:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
6,923
912
313
cPanel Access Level
Root Administrator
Thanks for the confirmation. Can you let me know how big those directories are getting? If you have root access to the machine we may need you to open a ticket to do some more investigating, as I haven't heard of those specific directories growing very large in the past.
 

Mak3000

Member
Dec 3, 2008
6
0
51
Thanks for the confirmation. Can you let me know how big those directories are getting? If you have root access to the machine we may need you to open a ticket to do some more investigating, as I haven't heard of those specific directories growing very large in the past.
Suddenly, I found partition / full, I checked directories space and found these two directories contains alot of sub-directories and have many files.
I've deleted all files and sub-directories, they back again within seconds, and the server overloaded because of copying files again, and Apache status shows lot of process from server IP address to website static files!
I've searched to disable cache and applied many tries some of them fails, and one succeed, but still /var/cache/nginx/proxy_temp/ get files again!!
That's all.