mod_file_cache unloads cache and load increases.

konrath

Well-Known Member
May 3, 2005
366
1
166
Brasil
Hello

I am using atop to monitor the performance of my server.

I use Apache compiled with mod_file_cache for better performance and reduce server load.

However I've noticed that when the cache is flushed the load increases.

Anyone know why the cache is deleted?

What should I set so that the cache is not clean?

Thank you
Marcelo Konrath
 

GIANT_CRAB

Well-Known Member
Mar 23, 2012
89
0
56
cPanel Access Level
Root Administrator
Cache will be deleted when:
  • Apache restarts
  • File in the cache directory gets modified (modified can be edit or delete)
  • Cache reaches maximum capacity and must flush in order for other files to be cached.

Also, an important thing to note is that CGI scripts (PHP/Perl/Ruby) cannot be cached via Apache modules.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello :)

I wanted to point out the following guide is available for troubleshooting high loads:

Troubleshooting high server loads on Linux servers

You mentioned the load increased, so if for some reason it was not due to the cache flushing, the above URL is a good resource.

Thank you.