MyBB Community Forums

Full Version: Rename Forums using custom script
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello All,
i want to know which includes i need to rebuildĀ the forums cache

found.

Solution:

<?php
define('IN_MYBB', 1);

require_once './global.php';

$cache->update_forums(); // Rebuild Forums cache

?>
Hi All,
now i want know the function name for rebuild Moderators cache outside mybb
You may call $cache->update_moderators(). [via]

Perhaps you could check this file https://github.com/mybb/mybb/blob/mybb_1...acache.php (note it's for 1.8.22) for various internal cache updating methods.
Thanks Worked;

and please i want to ask about rebuild forums counter

how it works
$cache->rebuild_forums_counter($tid); or just using as rebuild_forums_counter($tid); without cache


EDIT: please can someone post all mybb function to rebuild and manage cache and how they working ( for no more asking about this thanks)

(2020-07-02, 06:02 PM)noyle Wrote: [ -> ]You may call $cache->update_moderators(). [via]

Perhaps you could check this file https://github.com/mybb/mybb/blob/mybb_1...acache.php (note it's for 1.8.22) for various internal cache updating methods.
Thanks bro very helpfull i was not checked that link, sorry, andĀ  Thanks for helping