Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cache
#1
I suggest to add cache. Phpbb has this feature in core, why mybb is not? And I think it's extremely needed feature to speed up forum engine and reduce a server load. I advise to add this feature in future versions.
#2
MyBB already has three systems which use caching.

Settings - ./inc/settings.php is a cache of the settings in the database.

Datacache - Probably the most obvious. Cache via files, database, memcache, xcache, eaccelerator, and I've also written a handler for APC for 1.8.

Stylesheets - All stylesheets are cached in ./cache/themes/. They can optionally be loaded directly from the database but this is rarely the case.

What caching do you have in mind?
No longer involved in the MyBB project.
#3
(06-11-2012, 07:17 PM)Nathan Malcolm Wrote: MyBB already has three systems which use caching.

Settings - ./inc/settings.php is a cache of the settings in the database.

Datacache - Probably the most obvious. Cache via files, database, memcache, xcache, eaccelerator, and I've also written a handler for APC for 1.8.

Stylesheets - All stylesheets are cached in ./cache/themes/. They can optionally be loaded directly from the database but this is rarely the case.

What caching do you have in mind?

APC O.O ??? WOW NEW FEATURES THERE Toungue Just Kidding..

So the current $cache is what is know as file caching?
#4
(06-11-2012, 07:19 PM)Omar G. Wrote:
(06-11-2012, 07:17 PM)Nathan Malcolm Wrote: MyBB already has three systems which use caching.

Settings - ./inc/settings.php is a cache of the settings in the database.

Datacache - Probably the most obvious. Cache via files, database, memcache, xcache, eaccelerator, and I've also written a handler for APC for 1.8.

Stylesheets - All stylesheets are cached in ./cache/themes/. They can optionally be loaded directly from the database but this is rarely the case.

What caching do you have in mind?

APC O.O ??? WOW NEW FEATURES THERE Toungue Just Kidding..

So the current $cache is what is know as file caching?

The current $cache variable is an object of the DataCache class. By default it uses a database cache (using the datacache table), but you can use memcache, file cache etc by modifying the /inc/config.php file.
#5
I mean when user modify something in a thread, it stored in DB of course and as a file. So when someone open a thread Mybb just need to load cached html file and maybe add there some data about time and statuses. I've seen a temp folder in phpbb where cached pages are stored. Mybb does not have such folder.
#6
No, we do not have such a system. I really don't think we should. Threads are changed so often caching them is completely and utterly pointless IMO. Caches should be used for data that is not often changed.
#7
I can see a case for caching old threads - but not as a core feature.
#8
for a large forum, that is a big hit to the file system in terms of backups and such. big forums have a lot of old threads and thus would have a large number of files. but how often are old threads accessed anyway?
Lost interest, sold my sites, will browse here once in a while. It's been fun.
#9
I reckon a technique like IPB uses whereby you can choose for old threads to be archived is a good idea. Then threads of a certain age are only accessible via the archive mode.
#10
depends on the content. much of my content is reference/technical in nature so having to go into archive mode would not be beneficial. however, for more dynamic content (general OT, sports, gaming) it may be a viable solution.
Lost interest, sold my sites, will browse here once in a while. It's been fun.


Forum Jump:


Users browsing this thread: 1 Guest(s)