MyBB Community Forums
MyBB Community Forums
>
Extensions
>
Plugins
>
Plugin Development
> Getting forum name from cache for plugin
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.
_Jerry_
2015-05-09, 10:26 AM
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?
StefanT
2015-05-09, 12:52 PM
Something like that should work:
$forums = $cache->read('forums'); $forumname = $forums[$fid]['name'];
_Jerry_
2015-05-09, 01:29 PM
Perfect! Thank you
MyBB Community Forums
>
Extensions
>
Plugins
>
Plugin Development
> Getting forum name from cache for plugin