Welcome to Geeklog, Anonymous Thursday, November 28 2024 @ 10:37 am EST

Geeklog Forums

Topic page has too much info to deal with


Status: offline

OMAL

Forum User
Regular Poster
Registered: 12/06/17
Posts: 107
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.
 Quote

Status: offline

Laugh

Site Admin
Admin
Registered: 09/27/05
Posts: 1470
Location:Canada
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.
One of the Geeklog Core Developers.
 Quote

Status: offline

OMAL

Forum User
Regular Poster
Registered: 12/06/17
Posts: 107
I'v already updated the issue, don't worry.Thanks.
I modified
Text Formatted Code
in ADMIN_getListField_topics()
case 'story':$retval = '';
break;
 Quote

All times are EST. The time is now 10:37 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content