Mike Tougeron
Well-known member
One of the things to remember is that XenForo (currently) doesn't cache a lot of data into Memcached. After adding a quick piece of debug to the cache code, it only looks like it caches the following keys.XenFans for example in MY opinion doesn't benefit from 1800 seconds of fresh cache ..
It caches a lot, and doesn't get read a lot because of low traffic, and results in expiring before it's really used ..
XenFans during peak hours for example in MY opinion doesn't benefit from say half a day of fresh cache ..
It caches a lot, and keeps it, so it can be re-used, handy for low traffic. But, despite peak hour and hanging on to things so it benefits in the long(er) run. It will have more stale files which you desire to expire since they're hardly hit.
Get: xf_data_options
Get: xf_data_languages
Get: xf_data_contentTypes
Get: xf_data_codeEventListeners
Get: xf_data_cron
Get: xf_data_simpleCache
Get: xf_data_routesPublic
Get: xf_data_nodeTypes
Get: xf_data_bannedIps
Get: xf_data_discouragedIps
Get: xf_data_styles
Get: xf_data_displayStyles
Get: xf_data_smilies
Get: xf_data_bbCode
Get: xf_data_trophyUserTitles
Get: xf_data_reportCounts
Get: xf_data_moderationCounts
Unless you are making a lot of changes, you could probably* boost the cache time quite a bit and be safe. You would need to add a codeListener though to clear the cache for the moderation & report information.
*Buyer beware... there is unimplemented methods & notes in the code about cache additional data in the future.
APC is used for PHP opcode caching when it is installed and enabled (on by default with modern PHP builds). You don't need to change any XenForo configs to take advantage of the opcode caching. While APC "could" be used for data caching, 99.9% of the time I'd recommend against it. Memcached is a much better solution that is built specifically for shared data caching.APC or memcached, etc. .... that's different than opcode caching by xenforo, which is what these lifetime settings are for if I understand it correctly. http://xenforo.com/community/threads/tip-use-apc.6456/page-4#post-237629