NOISSUE cache/module_info 변경에 따른 이전 버전의 캐시파일과의 호환성 문제 고침.

This commit is contained in:
bnu 2014-01-08 23:14:52 +09:00
parent 06f824d68e
commit e96416f3cd

View file

@ -791,8 +791,14 @@ class moduleModel extends module
// Check if cached file exists
$cache_file = sprintf(_XE_PATH_ . "files/cache/module_info/%s.%s.%s.php", $module, Context::getLangType(), __XE_VERSION__);
if($cache_file)
{
$module_info = include($cache_file);
if($module_info === 1 || !is_object($module_info)) $re_cache = TRUE;
}
// Update if no cache file exists or it is older than xml file
if(!file_exists($cache_file) || filemtime($cache_file)<filemtime($xml_file))
if(!file_exists($cache_file) || filemtime($cache_file) < filemtime($xml_file) || $re_cache)
{
$info = new stdClass();
$buff = array(); // /< Set buff variable to use in the cache file