공지사항 캐싱 기능을 제거하여 공지사항이 오동작하는 문제 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6135 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2009-04-17 03:59:13 +00:00
parent 7496aeebb8
commit 7686e2a5ac
2 changed files with 2 additions and 40 deletions

View file

@ -405,21 +405,8 @@
* @brief module_srl값을 가지는 문서의 공지사항만 가져옴
**/
function getNoticeList($obj) {
$cache_file = _XE_PATH_.'files/cache/document_notice/'.getNumberingPath($obj->module_srl,4).$obj->module_srl.'.txt';
if(!file_exists($cache_file)) {
$oDocumentController = &getController('document');
$oDocumentController->updateDocumentNoticeCache($obj->module_srl);
}
$document_srls = FileHandler::readFile($cache_file);
if(!$document_srls) return;
$list_count = count(explode(',',$document_srls));
$args->document_srls = $document_srls;
$args->list_count = $list_count;
$args->list_order = 'list_order';
$args->order_type = 'asc';
$output = executeQueryArray('document.getDocuments', $args);
$args->module_srl = $obj->module_srl;
$output = executeQueryArray('document.getNoticeList', $args);
if(!$output->toBool()||!$output->data) return;
foreach($output->data as $key => $val) {