getItem($module_name, $cacheFile)) != false and filemtime(NV_ROOTDIR . '/' . NV_CACHEDIR . '/' . $module_name . '/' . $cacheFile) >= $pa) { $url = unserialize($cache); } else { $db->sqlreset()->select('id, addtime, alias')->from(NV_PREFIXLANG . '_' . $module_data . '_rows')->where('status=1')->order('addtime DESC')->limit(1000); $result = $db->query($db->sql()); $url = array(); while (list($id, $publtime, $alias) = $result->fetch(3)) { $url[] = array('link' => NV_BASE_SITEURL . 'index.php?' . NV_LANG_VARIABLE . '=' . NV_LANG_DATA . '&' . NV_NAME_VARIABLE . '=' . $module_name . '&' . NV_OP_VARIABLE . '=' . $alias . $global_config['rewrite_exturl'], 'publtime' => $publtime); } $cache = serialize($url); $nv_Cache->setItem($module_name, $cacheFile, $cache); } nv_xmlSitemap_generate($url); die();