Page 1 of 1
listcontent.php slow when there are many pages
Posted: Tue Feb 13, 2007 4:41 pm
by qbrix
Hello,
I'm running CMS 1.0.2 with MANY pages, and thats causing the listcontent.php page in the admin section to load VERY slowly. When the pages are collapsed (or when there was only a couple pages), it runs fine. But for the purpose of needing to add many pages in a large hierarchy, its too slow to even work with. Right now there is about 120 pages, running on a dedicated server (Slackware 10, 2.8Ghz, 1Gb RAM). Very little else is running on it, and everything else runs fast. Also, I set the php memory_limit to 64M, and I'm using eaccelerator.
Any ideas?
Re: listcontent.php slow when there are many pages
Posted: Wed Feb 14, 2007 1:42 am
by chead
Check out the current blog entry on
Shortcuts (a shameless plug

).
Give the
Add Page and
Collapse & List Pages tips a try!
Another little trick is to use "Apply" instead of "Submit" when saving a page so the pagelist doesn't re-display. If you open a new window to add a page, you can just close it after applying.
Re: listcontent.php slow when there are many pages
Posted: Wed Feb 14, 2007 5:22 pm
by qbrix
good tips
But, after talking to Ted on irc, he seemed to think that this is irregular. Perhaps I should have mentioned that with my ~120 pages, it takes 11 seconds to load the listcontent.php when its fully expanded. Ted feels that this shouldn't be happening.

Re: listcontent.php slow when there are many pages
Posted: Thu Feb 15, 2007 12:32 pm
by cyberman
Got a modified listcontent version from another user.
Please download it
here and tell me how long this version takes to load all pages.
Re: listcontent.php slow when there are many pages
Posted: Thu Feb 15, 2007 5:48 pm
by qbrix
Not much difference. Sometimes it loads a couple seconds faster, but on average its still around the same.
Re: listcontent.php slow when there are many pages
Posted: Thu Feb 15, 2007 9:45 pm
by cyberman
Hmm, have you tried to deinstall and delete all unused modules, tags and translations (admin and modules)?
Re: listcontent.php slow when there are many pages
Posted: Thu Feb 15, 2007 10:40 pm
by qbrix
how would that help? other than listcontent.php, the site is VERY fast
Re: listcontent.php slow when there are many pages
Posted: Fri Feb 16, 2007 8:47 am
by cyberman
Don't wanna quote source here. Please make a look at listcontent.php. It requires include.php. Inside this one other files are required. Long speak, short sense ... all translations and modules are loaded by include.php. If they are deleted it MUST be faster ...
Try it or try it not - I'm trying to help you with my support skills

.
Re: listcontent.php slow when there are many pages
Posted: Sat Feb 17, 2007 1:17 am
by cyberman