mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 11:44:10 +09:00
NOISSUE cache/module_info 변경에 따른 이전 버전의 캐시파일과의 호환성 문제 고침.
This commit is contained in:
parent
06f824d68e
commit
e96416f3cd
1 changed files with 7 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue