Forum Subject: Topic page has too much info to deal with
Posted on: 09/16/19 03:07am By: OMAL
Text Formatted Code
/admin/topic.php
This page has "topic field" that count articles of each topics. When you have 500 topics and takes 20ms per one topic in loop function, it takes 10second in total.
The problem is, you also have to use this page for just creating new topic and editing it. For that purpose, you don't need counting articles for all other topics.
I suggest topic creation page and topic stats page is separeted.
Or suggest that add config option for this "topic field" and make it disable if it turns off.
Thanks.
Re: Topic page has too much info to deal with
Posted on: 09/16/19 07:34am By: Laugh
It only counts the articles in each topic displayed on the page not all the topics. (unless you set it to display 500).
Most sites only have 10 or so topics. One of my sites does have about 200 topics and almost 5000 articles and it doesn't take nearly as long as yours. Maybe you have some PHP or web server setting you can tweak to speed up the site?
I find the info very important. If this becomes a feature request then their should definetly be a config option to disable "expensive" columns to speed up the admin which would include other columns in other admin lists (like the topic column in the articles list I believe).
If you want to manually update the issue on your site now you could edit system/lib-admin.php file and update the function ADMIN_getListField_topics and comment ou the 'story' case.
Re: Topic page has too much info to deal with
Posted on: 09/16/19 08:13pm By: OMAL
I'v already updated the issue, don't worry.Thanks.
I modified
Text Formatted Code
in ADMIN_getListField_topics()
case 'story':$retval = '';
break;