2009-08-20, 09:34 PM
2009-08-21, 02:21 AM
This is a function I have created to update various caches. Of course, the input variables have to be created first.
function myfunction()
{
global $output, $db, $mybb, $errors, $cache, $lang;
// Rebuild cache with saved values
require_once MYBB_ROOT.'inc/class_datacache.php';
$cache = new datacache;
$cache->update_usergroups();
$cache->update_forumpermissions();
$cache->update_forums();
$cache->update_moderators();
}
function myfunction()
{
global $output, $db, $mybb, $errors, $cache, $lang;
// Rebuild cache with saved values
require_once MYBB_ROOT.'inc/class_datacache.php';
$cache = new datacache;
$cache->update_usergroups();
$cache->update_forumpermissions();
$cache->update_forums();
$cache->update_moderators();
}
2009-08-21, 12:48 PM
Thanks, that worked great.