Entries Tagged as “General”
Migration - Tips and Tricks
Can Migration be Performed even after skipping the Migration Wizard Screen ?? Yes
Lets say you have CF8 server and want to migrate to CF9 but accidentally you skipped the migration wizard . Actually during installation , installer places the CF8 settings files under CF9/lib as cf8settings folder . So in migration wizard if you go ahead with the migration process , these settings gets applied on CF9 Server . Now you have missed this process , but don't worry you can just set the fields runmigrationwizard and migratecf8 to "true" in adminconfig.xml which is under CF9/lib and re-start the server . Boom migration wizard appears again !! For other tips and tricks Please follow the blog , will post them soon :)
Regards ,YASHAS R RADOBE CF TEAMColdFusion Zeus POTW - Extra edition...
Ok, I know I did a Zeus POTW earlier this week, but I had to share this little gem. This is another small thing - a simple function - and something that's been possible via a CFLib UDF for years. That being said - when I saw this show up in the latest Zeus build today, I had to share.
If you've ever needed to format a date and a time, you know that it requires two calls, ala:
<cfoutput>
#dateFormat(now())# #timeFormat(now())#
</cfoutput>
Zeus adds dateTimeFormat to combine this into one call:
<cfoutput>
#dateTimeFormat(now())#<br />
</cfoutput>
For formatting, the mask is slightly different than before. Masks are based on SimpleDateFormat from Java. So for example:
<cfoutput>
#dateTimeFormat(now(), "MMMM d, yyyy h:mm a")#<br />
</cfoutput>
Yeah, ok, not Earth-shattering, but this was one of a few new functions released in the latest Zeus build that were things I've seen requested for years.
Initiative to improve ColdFusion docs
Ray has blogged about the initiative that CF team is taking to improve docs. Check - http://www.coldfusionjedi.com/index.cfm/2011/6/28/Initiative-to-improve-ColdFusion-docsCFCache does not ignore directory attribute
ColdFusion 9 came with a reincarnated version of CFCache. It has much better performance, more flexibility of defining caches and with added functionality. It however has some points to consider especially for apps using cfcache and migrating to CF9 and in this blog post I wish to cover one of them. CFCache ignores directory attribute! Many people ask this question. While itâ??s not exactly the case, you will find that after running your templates there is no generated cache file present in the directory mentioned.To understand this letâ??s look at the difference in the implementation. Earlier CFCache was a custom ColdFusion tag with no end tag. So it would reside on a template, wait for it to get processed and then cache the output html as txt file in the directory users specified (or to the default directory if not specified). For all later calls to this template, cfcache would fetch the result from this file without processing the template. New CFCache avatar is a pure java solution based on EHCACHE. It would almost do same thing but with a small difference. Its architecture makes memory as the primary store for all the caches. Disk is mostly used as a second level store. Â The following would be a simplified diagram depicting its flow.
- Set maxElementsInMemory to 1
- Keep overflowToDisk as true
- Add your directory for diskstore in ehcache.xml o <diskStore path="user directory"/>
- Use CacheSetProperties to set directory o set in onApplicationstart
- The call first call to cfcache should have the directory.