Skip to content

Commit

Permalink
FAQ 4.1.00
Browse files Browse the repository at this point in the history
  • Loading branch information
hoaquynhtim99 committed Sep 22, 2016
1 parent 4719810 commit 980dded
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
id="28"
type="module"
name="faq"
version="4.0.29"
version="4.1.00"

[author]
name="VINADES.,JSC"
Expand Down
6 changes: 3 additions & 3 deletions modules/faq/funcs/sitemap.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@

$url = array();
$cacheFile = NV_LANG_DATA . '_Sitemap.cache';
$pa = NV_CURRENTTIME - 7200;
$cacheTTL = 7200;

if (($cache = $nv_Cache->getItem($module_name, $cacheFile)) != false and filemtime(NV_ROOTDIR . '/' . NV_CACHEDIR . '/' . $module_name . '/' . $cacheFile) >= $pa) {
if (($cache = $nv_Cache->getItem($module_name, $cacheFile, $cacheTTL)) != false) {
$url = unserialize($cache);
} else {
$list_cats = nv_list_cats();
Expand All @@ -37,7 +37,7 @@
}

$cache = serialize($url);
$nv_Cache->setItem($module_name, $cacheFile, $cache);
$nv_Cache->setItem($module_name, $cacheFile, $cache, $cacheTTL);
}

nv_xmlSitemap_generate($url);
Expand Down
4 changes: 2 additions & 2 deletions modules/faq/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
'modfuncs' => 'main',
'is_sysmod' => 0,
'virtual' => 1,
'version' => '4.0.29',
'date' => 'Wed, 18 May 2016 17:00:00 GMT',
'version' => '4.1.00',
'date' => 'Thu, 22 Sep 2016 17:00:00 GMT',
'author' => 'VINADES ([email protected])',
'note' => ''
);

0 comments on commit 980dded

Please sign in to comment.