MyBB Community Forums

Full Version: Getting forum name from cache for plugin
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am creating a plugin, I wanted to get forum names using the forum ID, instead of querying the DB everytime, is there a way to get it from MyBB cache? Am I missing something here?
Something like that should work:
$forums = $cache->read('forums');
$forumname = $forums[$fid]['name'];
Perfect! Thank you