mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 19:21:40 +09:00
Fixed an issue that did not use the cache file
This commit is contained in:
parent
67df1ed94e
commit
239ff94277
2 changed files with 8 additions and 9 deletions
|
|
@ -215,7 +215,8 @@ class ncenterliteModel extends ncenterlite
|
|||
}
|
||||
|
||||
$output->data = $list;
|
||||
if($page <= 1)
|
||||
|
||||
if($page <= 1 && $output->flag_exists !== true)
|
||||
{
|
||||
$oNcenterliteController = getController('ncenterlite');
|
||||
$oNcenterliteController->updateFlagFile($member_srl, $output);
|
||||
|
|
@ -256,11 +257,13 @@ class ncenterliteModel extends ncenterlite
|
|||
$member_srl = $logged_info->member_srl;
|
||||
}
|
||||
$flag_path = \RX_BASEDIR . 'files/cache/ncenterlite/new_notify/' . getNumberingPath($member_srl) . $member_srl . '.php';
|
||||
|
||||
if(FileHandler::exists($flag_path) && $page <= 1)
|
||||
{
|
||||
$output = require_once $flag_path;
|
||||
if(is_object($output->data))
|
||||
if(is_object($output))
|
||||
{
|
||||
$output->flag_exists = true;
|
||||
return $output;
|
||||
}
|
||||
}
|
||||
|
|
@ -269,7 +272,7 @@ class ncenterliteModel extends ncenterlite
|
|||
$args->page = $page ? $page : 1;
|
||||
if($readed) $args->readed = $readed;
|
||||
$output = executeQueryArray('ncenterlite.getNotifyList', $args);
|
||||
|
||||
$output->flag_exists = false;
|
||||
if(!$output->data) $output->data = array();
|
||||
|
||||
return $output;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue