Ckfinder v1.1 PHP and more than 3000 images in one dir. When i click on the dir, browser become vey very very slow think, about 10 minutes. It does not metter thumnails disables or enabled and which browser you use (ie, mozilla, opera). Browser crash anyway.
Any ideas how to fix it?
Any ideas how to fix it?
Re: 3000+ images browser crash
I tested CKFinder (2700 images) on my local computer and it took less than 2 seconds just to generate list of files on the server side.
Displaying it in browser took 25 seconds (Firefox) and 8 seconds (IE).
Is your computer old? Maybe the server is overloaded?
Open Firebug (in Firefox) to trace ajax calls, you should see "GetFiles" request there, something similar to that:
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: 3000+ images browser crash
amd athlon 64 x2 dual 4400+, 2Gb ram
3500 images
GET http://test/fck_find/core/connector/php ... catalog%2F (3563ms)
GET http://test/fck_find/core/connector/php ... g%2Fbig%2F (24171ms)
GET http://test/fck_find/core/connector/php ... 2Fsmall%2F (30328ms)
loading it all about 30 sec on generating xml and 30 seconds to display images on this machine, but on another machine it takes about 10 minutes and browser crash:((
can it loading like usual web-page (gradually)? because while all images not loading, browser not response.
Re: 3000+ images browser crash
For now, you can try "optimizing" the GetFiles command (core/connector/php/phpX/CommandHandler/GetFiles.php).
I'm unable to test CKFinder on your server with xdebug, so I don't know what makes this request so slow, but I think you can try to replace this
with:
for example when sizeof($files) is more than 200. Test this and compare the speed results (I assumed that the problem is with thousands of file operations made by this script, so this should work faster in this case).
Remember that this is just a quick hack that will cause sending wrong size of files and invalid modification time.
To speed up sending of the XML responses, you may install mod_deflate or mod_gzip to compress the output.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+