Notifications
Clear all

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

21 Posts
8 Users
7 Reactions
915 Views
Robert
Posts: 10591
Admin
(@robert)
Support Team
Joined: 9 years ago

Please see my reply here:

https://wpforo.com/community/postid/116761/

Reply
1 Reply
(@cmw14)
Joined: 8 years ago

Estimable Member
Posts: 130

Posted by: @robert

Please see my reply here:

https://wpforo.com/community/postid/116761/

Thank you for this solution, after following your advice it has now allowed me to run with caching re-enabled 👍 I have now quadrupled my previous number of free file allocations.

 

Reply
Posts: 9
(@levelbest)
Active Member
Joined: 2 years ago

Still looking for an answer to this:

Is there purging process of these files or do they create in perpetuity without any automated cleanup? 

Reply
1 Reply
Moderator
(@martin)
Joined: 8 years ago

Support Team
Posts: 992

@levelbest,

There are more than ten type of caches in wpForo, they are being auto-purged for sure:

  1. forum / single
  2. forum / list
  3. topic / single
  4. topic / list
  5. post / single
  6. post / list
  7. member / single
  8. member / list
  9. tags
  10. avatars
  11. urls
  12. options
  13. reactions

Only one of them, the reactions type, is not being auto-purged. They will be deleted if the reacted post is deleted. So this type of cache stores likes/dislikes and other reactions of each post, making the performance dozens of time higher if you have hundreds of thousands reactions. Sometimes forums have millions of reactions, each post may have dozens or hundreds of reactions, so you may have tens of thousands of reactions cache files, but they will make your forum very fast. 

 

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

What other reactions constitute "/reaction" cache folder files other than the Like/Dislike button?

This is where some of my confusion lies because my forums might be getting 10 Likes/Dislikes a day but Im generating 10s of thousands of /reaction cache files -- nearly all of them empty. 

The same can be said for the other cache directories where many of the files just have what appear to be garbage null strings in them and not any relevant data. This is why a large portion of the cache files are 6 bytes.

Some of the topic and post cache files do have referencing forum data in them and are legitimate.

 

What is the purge/expiration lifecycle on the cache directories?

Reply
1 Reply
Robert
Admin
(@robert)
Joined: 9 years ago

Support Team
Posts: 10591

@udpride ,

I'm sorry but I cannot write down the full documentation of reaction caching. This is not as you're trying to imagine or explain. The number of reaction cache files is equal to the number of cached posts so it doesn't matter how many reactions you get per day and this doesn't make the reaction faster, instead it makes the whole forum faster starting from topic and post loading time.

Even the empty cache file makes one query less saying there is no reaction. So when posts re loaded they should not check in the database for reactions. This is all I'd explain about the reaction cache. Again if you have file limitation on your hosting you can disable the reaction cache as I instructed above.

 

Reply
Ricsca
Posts: 13
(@ricsca)
Eminent Member
Joined: 4 years ago

@udpride What are the statistics of your forum

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

I may have had 20-25 posts today.  3,800 unique visitors and 164K requests last 24hrs per CloudFlare but this is sitewide. Last I checked 18 users were online on the forums.

Reply
Page 3 / 3