mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
Use offset instead of pagination in RSS module, to prevent unnecessary count query
This commit is contained in:
parent
01fd0e9cc5
commit
ed473886ea
1 changed files with 2 additions and 1 deletions
|
|
@ -137,9 +137,10 @@ class rssView extends rss
|
|||
$args->end_date = $end;
|
||||
$args->search_target = 'is_secret';
|
||||
$args->search_keyword = 'N';
|
||||
$args->page = $page > 0 ? $page : 1;
|
||||
$args->module_srl = array_keys($target_modules);
|
||||
$args->list_count = $config->feed_document_count > 0 ? $config->feed_document_count : 20;
|
||||
$args->offset = ($page > 1) ? ($args->list_count * ($page - 1)) : 0;
|
||||
$args->page = 0;
|
||||
$args->sort_index = 'regdate';
|
||||
$args->order_type = 'desc';
|
||||
$document_list = DocumentModel::getDocumentList($args)->data;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue