I manage a site with nearly 50GB of small PDFs. Thousands of directories and files. This makes CFFM super duper slow. I know it sounds silly, but when staring at a blank window, 15 seconds feels like 15 minutes. The problem is that with every page load, the entire directory tree below your initial directory is read. Crazy. Here is the fix…
At around line 648 of cffm.cfm, only turn on recursion if this particular action requires it:
<cfset variables.listAllFiles = cffm.directoryList(cffm.includeDir, (isdefined("url.action") and url.action eq 'copymoveForm'))>
… which is, when moving or copying. In my application, speed increased 10x.
And to get a little more speed when listing a directory with images…
At around line 67 of cffm.cfm, turn off image sizes:
<cfinvokeargument name="enableImageDimensionsInDirList" value="true">
ColdFusion
cffm, cms, recursion, slow
In case you were watching me build a web2.0 website from scratch over time, here’s a little update.
Search engine friendly urls are now working. ex: http://2009.webveteran.com/about-freelance-web-development/home/
Ajax loading is 50% done. The main contents change so far (not page title or sidebar contents). To see it see it work, load the home page, then click on ‘Home’.
The Experiment
ajax, cms, sef, seo
I had this crazy idea, and I think I’m going to try it! I started to build a new website for myself… long overdo from almost three years ago. And I figured, ‘why not do so publicly?’ Sure it’s like dropping my drawers, but I’m confident although I know I am not the absolute best. But I think it would be interesting… at least, I think it would be to watch someone else do so.
The completed site will be/have:
- web2.0 layout and functionality
- coldFusion, ajax, scriptaculous, javascript sound
- custom cms with plugin architecture (I might open this up as well)
- seo + sef urls
- one page load navigation (ajax)
So without further wait, please visit 2009.webveteran.com to take part in the experiment. Comment and criticisms are welcome and appreciated.
Keep in mind, this is a site entirely in development! What you will see occasionally:
- broken links
- broken content
- dummy text
- images as test text
Heck, you might even see a table or two (gasp). You’ll probably also see me change libraries every now and then (as was the case with the scroller). And of course there may be days without any progress whatsoever. Subscribe to this blog or my twitter account to keep updated!
[sigh] here we go…
News, The Experiment
ajax, cms, ColdFusion, experiment, JavaScript, plugin, Scriptaculous, sef urls, seo, site building, web development
Recent Comments