Notifications
Clear all

[Solved] 150,000 Cache Files - 6 bytes each

21 Posts
8 Users
7 Reactions
930 Views
Sofy
Posts: 4910
 Sofy
Admin
(@sofy)
Support Team
Joined: 7 years ago

Hi,

Everything is fine here. This is the standard logic of caching systems. It stores data in files to eliminate the need to get information from the database each time. This works properly for wpForo users, even on busy websites.

Reply
1 Reply
(@levelbest)
Joined: 2 years ago

Active Member
Posts: 9

@sofy creating 150,000 files that quickly is normal and not deleting them?  Many hosts (including the one mentioned in the first post) have a file number limits along with hard drive space limits - and if you are creating that number of files and not deleting them quickly - you could easily exceed those parameters. 

Can you please explain a bit more how the system works? This seems like an excessive amount of files - and does the system delete them automatically?

Reply
Posts: 130
(@cmw14)
Estimable Member
Joined: 8 years ago

Posted by: @levelbest

creating 150,000 files that quickly is normal and not deleting them?  Many hosts (including the one mentioned in the first post) have a file number limits along with hard drive space limits - and if you are creating that number of files and not deleting them quickly - you could easily exceed those parameters. 

This is exactly my predicament I have, and as a result I've had to run WPForo for over a year!! now without any of its caching enabled.

Reply
Posts: 23
Topic starter
(@udpride)
Eminent Member
Joined: 6 months ago

I have a hosting plan file limit of 200,000 files.  Tens of thousands of files in the /reaction folder alone that basically look like 6 byte null string files with nothing in them.  At 60,000 cache files a day that would be 1.8 million files a month and 21.6 million files a year.  On a site with about 35-45,000 overall files that would mean my non-Foro files would constitute just 0.002% of all files on my node.  Its an unsustainable number.

I have very little traffic on my site at the moment.

In viewing the topic and post cache files, it appears the topics and posts being cached are not even recent relevant topics and posts. Some are threads 10 years old or more that no one would be interacting with. 

My server loads are extremely low in terms of CPU and physical memory, and Im protected behind CloudFlare.

Something is very amiss.

 

Reply
RealAct
Posts: 238
(@realact)
Reputable Member
Joined: 7 years ago

I believe you guys simply need better hosting. For example, our cache right now is 40 times what you mentioned on yours, no issues whatsoever. Cache works that way. If you were to have a big site in the future, or if your site grows, you'll find yourself in the same predicament, even if you are not running a forum.

I would never use a hosting service that limits the amount of files I can use. I understand that some people cannot afford to pay for premium hosting or dedicated servers. But just look around, I'm sure you'll find a decent host that doesn't limit your file count. 

Reply
Posts: 23
Topic starter
(@udpride)
Eminent Member
Joined: 6 months ago

OK assuming this level of file cache creation is normal, what are all the 6 byte empty cache files for which seem to only have null strings in them? What are their purpose and what is the process for creating cache files to begin with -- what triggers them for creation? And is there ultimately a purging process of these files or do they create in perpetuity without any automated cleanup?

Which "clear cache" buttons in the Foro admin are clearing the specific directories I mentioned in the original post.

Im just trying to understand if its traffic related or something else because at 2am with hardly any traffic Im still producing thousands of cache files. 

Just want to understand the process a bit better.  I am flexible to adjust my hosting plans and hosts as needed so I can work around the inode barrier. 

Reply
Page 2 / 3