AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

Filter by custom fields

Topic prefix

AI Assistant
Notifications
Clear all

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

21 Posts
8 Users
7 Reactions
5,343 Views
Robert
Posts: 10716
Admin
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@robert)
Support Team
Joined: 2 months ago
Reply
1 Reply
(@cmw14)
Joined: 9 years ago

Estimable Member
Posts: 139
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

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
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@levelbest)
Active Member
Joined: 3 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: 10 years ago

Support Team
Posts: 993
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@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: 24
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@udpride)
Eminent Member
Joined: 2 years 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: 2 months ago

Support Team
Posts: 10716
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@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: 41
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@ricsca)
Trusted Member
Joined: 5 years ago

@udpride What are the statistics of your forum


Reply
Posts: 24
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@udpride)
Eminent Member
Joined: 2 years 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.

 forum stats

Reply
Page 3 / 3
Share: