Railo News
- January 30, 2012
- Railo Tip of the Week: Railo Resources
Since Railo 2.0, it is possible to use all different kinds of virtual file systems with all different kind of file related tags. Railo supports the following virtual file systems:
- file (file:// or c:\ or /var/…)
- ram (ram://)
Note that you can store the location for the RAM resource to any external cache or NoSQL key value store) - ftp (ftp://username:password@ftpserver/)
- db (db://datasourcename:/)
- http (http://fileLocation)
- ZIP (zip://pathToFile!directory/file)
- TAR (tar://pathToFile!directory/file)
- TGZ (tgz://pathToFile!directory/file)
- S3 (s3://secret:access@amazonaws.com/bucket)
When you want to use a given resource you can easily do it by using the following notation:
<cffile action="read" file="db://datasource/temp.txt" variable="susi"> <cfdirectory action="read" directory="ram://" name="susi"> <cfif fileExists("ftp://username:password@ftpServer/index.cfm")>...</cfif>In addition you can easily define any resource as a mapping pointing to that resource. So you then can use these mappings inside your code.
- January 23, 2012
- Railo Tip of the Week: Query Cache
If you are using the query cache and you would like to flush the cache you can use the tag <cfobjectcache action = "clear"> in order to do so. The problem here is that this call flushes the complete cache which is a waste. In Railo you can use some additional attributes like filter, filterignorecase, and result.
The attributes filter and filterignorecase allow you to flush objects from the cache that match the filter. The filter gets applied like the sql statement LIKE. So if you use the following tag:
<cfobjectcache action="clear" filter="susi">
Then all elements in the query cache that are containing the string susi are flushed from the cache. This means you can easily remove all queries for a certain table if a table is updated on the database. The attribute filterignorecase does the same without obeying the case.
The next new attribute Railo has introduced is result which can be used with the new action size. If you execute the following tag:
<cfobjectcache action="size" result="cachesize">
the variable cachesize will contain the number of elements in the cache.
- January 16, 2012
- Railo Tip of the Week: Page Pool
Greetings and welcome to the first in our weekly series of Railo tips! Over the years, we've picked up a trick or two using Railo and we wanted to share these with you. And so, without further adieu, we are happy to present our first tip!
Page Pool
When you call a template in Railo, the template lands in the page pool for reuse. The pages in the page pool are refreshed depending on the settings you have made in the Performance/Caching area of the Railo administrator. Now if you want to make use of the setting "never" which will never look for changed templates during the lifetime of a server instance, you should use the built in function
pagePoolClear()
in order to flush the template cache (page pool).If you want to see what pages are inside the page pool you can use the built in function
pagePoolList().
The function returns an array with all the pages in the page pool.Have a tip you'd like to share? Get in touch with us and let us know!
Mark Drew's personal blog
- September 26, 2011
- CFCamp 2011! Be there or be a Pretzel!
Munich! City of Oktober fest and Pretzels! The big soft ones with butter inside. What could be more delicious than that? I tell you what is... CFCAMP 2011 is!
That's right ladies and gentle-folks, after a three year hiatus, there is going to be a stomping and knowledge-infusing conference in Munich this year, filled to the gills with awesome presenters and me!
For a measly €90 a ticket (going up to €119 in October, so get them whilst they are fresh!), your mind can be blown by the likes of Charlie Arehart (he of the inside secrets into ColdFusion 10!), Luis Majano (he of the mobile knowledge), Gary Gilbert exposing his JQuery to the public, Bilal Soylu will also be locking down your apps, and of course Andy Allan and myself, giving it all from our presenter's pulpit.
Sure you can't miss this?!
Head over to
http://www.cfcamp.org/anmeldung.cfmhttp://www.cfcamp.org/registration.cfm?ChangeLanguageTo=en to get your tickets (yep, it's in German, just use Chrome and translate it, you are a clever person right?This time in English! Don't say we don't spoil you!)
- August 22, 2011
- Checking the memory of your applications in Railo 3.3.0.026 rc
If you have ever wondered how your memory is being used in a Railo Server application, why not get the latest development release of Railo Server: 3.3.0.026 rc (you know that you can do this from the server administrator right?).
Just go to http://yourdomain/railo-context/admin/server.cfm and log in, then you can click on the "update" button, set the updates to "Development", update and then click the "execute button below to get the latest update.
Once you have done that, in the Railo Server Administrator screen, you will see info about your installation and scrolling down you will get a nice graphic on how your memory is being used, like the example below:
Yet another handy feature of Railo Server! Nice!
- April 1, 2011
- Denny Valliant Joins Railo!
It has been two years today that I have been working at Railo Technologies and it gives me great pleasure to announce that Denny Valliant (@denstar) has just joined the team!
Denny is a great addition as he has been working with various packagers for Railo, and of course, he is the Lead Developer for the CFEclipse project!
How about that for a great combination eh?!
Welcome on board Denny! Hold on tight! It's gonna be a hell of a ride!
Check out the official announcement over that the Railo Blog


.png)

