Esempio n. 1
0
function tep_cache_categories_box($auto_expire = false, $refresh = false)
{
    global $cPath;
    $cache_output = '';
    if ($refresh == true || !read_cache($cache_output, 'categories_box-' . $_SESSION['language'] . '.cache' . $cPath, $auto_expire)) {
        if (!class_exists('bm_categories')) {
            include DIR_WS_MODULES . 'boxes/bm_categories.php';
        }
        $bm_categories = new bm_categories();
        $cache_output = $bm_categories->getData();
        write_cache($cache_output, 'categories_box-' . $_SESSION['language'] . '.cache' . $cPath);
    }
    return $cache_output;
}
function tep_cache_categories_box($auto_expire = false, $refresh = false)
{
    global $cPath, $language;
    $cache_output = '';
    if ($refresh == true || !read_cache($cache_output, 'categories_box-' . $language . '.cache' . $cPath, $auto_expire)) {
        if (!class_exists('bm_categories')) {
            include 'includes/modules/boxes/bm_categories.php';
        }
        $bm_categories = new bm_categories();
        $cache_output = $bm_categories->getData();
        write_cache($cache_output, 'categories_box-' . $language . '.cache' . $cPath);
    }
    return $cache_output;
}