Example #1
0
function buildcaches()
{
    global $db, $output, $cache, $lang, $mybb;
    $output->print_header($lang->upgrade_datacache_building);
    $contents .= $lang->upgrade_building_datacache;
    require_once MYBB_ROOT . "inc/class_datacache.php";
    $cache = new datacache();
    $cache->update_version();
    $cache->update_attachtypes();
    $cache->update_smilies();
    $cache->update_badwords();
    $cache->update_usergroups();
    $cache->update_forumpermissions();
    $cache->update_stats();
    $cache->update_moderators();
    $cache->update_forums();
    $cache->update_usertitles();
    $cache->update_reportedposts();
    $cache->update_mycode();
    $cache->update_posticons();
    $cache->update_update_check();
    $cache->update_tasks();
    $cache->update_spiders();
    $cache->update_bannedips();
    $cache->update_banned();
    $cache->update_birthdays();
    $cache->update_most_replied_threads();
    $cache->update_most_viewed_threads();
    $cache->update_groupleaders();
    $cache->update_threadprefixes();
    $cache->update_forumsdisplay();
    $contents .= $lang->done . "</p>";
    $output->print_contents("{$contents}<p>" . $lang->upgrade_continue . "</p>");
    $output->print_footer("finished");
}