#498 document table's cache delete.. mod some code

This commit is contained in:
akasima 2014-02-19 14:13:00 +09:00 committed by khongchi
parent 7aa70223f1
commit d25cba6673

View file

@ -1406,6 +1406,7 @@ class documentController extends document
while(true) {
$args = new stdClass();
$args->category_srl = $category_srl;
$args->list_count = 100;
$args->page = ++$page;
$output = executeQuery('document.getDocumentList', $args, array('document_srl'));
@ -1414,9 +1415,8 @@ class documentController extends document
foreach($output->data as $val)
{
$document_srl = $val->document_srl;
//remove document item from cache
$cache_key = 'document_item:'. getNumberingPath($document_srl) . $document_srl;
$cache_key = 'document_item:'. getNumberingPath($val->document_srl) . $val->document_srl;
$oCacheHandler->delete($cache_key);
}
}