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.
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.
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.
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.
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.