Getting forum name from cache for plugin
#1
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?
Visit our <// Code Tryout //> | MyBB plugins: Addthis
Reply
#2
Something like that should work:
$forums = $cache->read('forums');
$forumname = $forums[$fid]['name'];
[Image: banner.png]
Reply
#3
Perfect! Thank you
Visit our <// Code Tryout //> | MyBB plugins: Addthis
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)