The Coldfusion Open Source Forums
Home | ImageCFC | CFFM | BlogCFM | CFMBB | CFOpenMail / ImapCFC | CFOpenChat
Forums | Profile | Inbox | Members | Chat | Search | Login | RSS
Vivio Technologies VPS Hosting
New Topic Reply Subscription Options   Previous Page  Page: 1   Previous Page

Forums: CFFM: CFFM taking a long time to load
Created on: 09/05/07 {ts '2013-05-21 17:34:00'} Views: 4820 Replies: 5
CFFM taking a long time to load
Posted Wednesday, September 5, 2007 at {ts '2013-05-21 17:34:00'}

I am trying to use CFFM v1.17 with FCKEditor and CFFM is taking a long time to load. I have used an older version before with CF7 on a smaller site, and it loads fine. I am using CF8 (Windows 2K3) on a new site and the app takes upwards of 10 seconds to come up with the initial directory list. It continues to take a long time on subsqequent directories.

Has anyone had issues using CFFM with CF8? Has anyone had slowness issues in general? BTW, when I use the built-in FCKEditor CF file tools, it comes up very quickly. Thanks.

-Daniel

Edited 09/05/07 {ts '2013-05-21 17:35:00'}
RE: CFFM taking a long time to load
Posted Thursday, September 6, 2007 at {ts '2013-05-21 14:34:00'}

Is there a lot of stuff in the initial directory?

What types of files are in the initial directory?

Rick Root
I'm not certified, but I have been told that I'm certifiable!

www
RE: CFFM taking a long time to load
Posted Thursday, September 6, 2007 at {ts '2013-05-21 14:56:00'}

The initial directory only has a few folders in it. The subsequent directories have a lot of folders/sub-folders and files (JPG and PDF mostly) in them.

Is it doing some kind of recursive loop through all the directories?

Thanks.

-Daniel

RE: CFFM taking a long time to load
Posted Friday, September 7, 2007 at {ts '2013-05-21 09:39:00'}

Well, CFFM does do some recursive directory reading in order to get a list of all the subfolders within the root directory.

This means if you point your installation of CFFM to C:\ or / or something like that, you're going to find it to be horrendously slow no matter what version of Coldfusion you're running.

It does this so that when you choose to move or copy a file, you can move or copy it to any directory within your folder structure.

See the following code:

<cfset variables.listAllFiles = cffm.directoryList(cffm.includeDir,"true")>
<cfif variables.listAllFiles.RecordCount gt 0>
<cfquery name="variables.listAllDirectories" dbtype="query">
select * from variables.listAllFiles
where type = 'Dir'
</cfquery>
<cfelse>
<!--- this is a workaround for CFMX --->
<cfset variables.listAllDirectories = QueryNew("IGNORE")>
</cfif>

You can change "true" in the first line to "false" and it won't do it recursively.. but you'll never be able to copy/move files to any directory other than a subdirectory.

Rick

Rick Root
I'm not certified, but I have been told that I'm certifiable!

www
RE: CFFM taking a long time to load
Posted Friday, September 7, 2007 at {ts '2013-05-21 10:13:00'}

Rick,

That did it. While there aren't a lot of directories initially, there are a lot of sub-directories and files. I set that value to false and it comes up quickly now. Is there a switch to turn off the move/copy links or do I just need to comment them out? Thanks!

-Daniel

RE: CFFM taking a long time to load
Posted Friday, September 7, 2007 at {ts '2013-05-21 10:19:00'}

Nope, no switch. Just comment them out. They're kinda hard to find, thanks to the resource bundle stuff. You'll have to look in the cffm_properties file to figure out which Msg they are and then find that msg in cffm.cfm =)

Rick

Rick Root
I'm not certified, but I have been told that I'm certifiable!

www

New Topic Reply Subscription Options   Previous Page  Page: 1   Previous Page
Subscription Options
Subscription options are available after you log in.

There are 4 active user sessions right now.