Reputation: 81
We are using the paid version of CKFinder
. When we open the pop-up we see our complete structured folder with all images, but it takes ages to load.
This is due too CKFinder
and not our server. If I would have coded my own "finder" it would almost load images instantly, because the deadline I couldnt code it myself and thus we decided to use CKFinder
but as said, it is horribly slow.
Is there any way to speed up the process so we dont have to wait seconds every single time we go to a new folder? some folders take almost 10 seconds
to load, and yes... there are 50+ images in the folder but as said. I made a small script that does the same as CKFinder
and it loads everything almost instantly. But since we paid for CKfinder
we want to use this, but reduce the load times.
As said, if I would have coded my own finder there would almost be no delay compared to CKFinder.
I hope someone knows how to speed up CKfinder
:)
Upvotes: 1
Views: 899
Reputation: 745
There is a small problem in your config.php
that may make CKFinder slow: the default
backend is a remote one (FTP), and it's used in the privateDir
section as a backend to store CKFinder private files (including generated thumbnails). Fetching data from FTP is much slower in comparison with the local file system, and this may cause delays. The way to solve this is creating an additional backend in the local file system and use it as a storage for private data in the privateDir
section.
Example:
$config['privateDir'] = array(
'backend' => 'ckfinder_private_data', // Use the local file system backend.
'tags' => '.ckfinder/tags',
'logs' => '.ckfinder/logs',
'cache' => '.ckfinder/cache',
'thumbs' => '.ckfinder/cache/thumbs',
);
$config['backends'][] = array(
'name' => 'ckfinder_private_data',
'adapter' => 'local',
'root' => '/path/to/writable/dir/'
);
Additionally, you may also try lowering thumbnailDelay
in the CKFinder JavaScript client.
Upvotes: 2