Site Contents
My Blog
Wireless & Networking
Hardware & Gadgets
Software Picks
Contact Me

My Articles & Papers
Flex Performance
Server/Client Under the Hood
Multiple Instances of CFMX
Multiple Instance Config
NLB with ColdFusion
Clustering CFMX for J2EE
Multi-Tier Hardware LB w CFMX
Cisco CSS & Coldfusion MX
JRun 4 Jini based Clustering
WiFi Growth

2ID Tacweb

Other Hobbys
Body-For-Life Challenge

Personal Projects
Family Pool
Deck Gate



Welcome to, the personal homepage of Brandon Purcell. I started building many, many years ago to share information I ran across everyday in my role as a Support Engineer and Consultant for Macromedia/Adobe. As a support engineer and consultant I always had a lot to blog about but as I moved into managment roles at Adobe my technical content dwindled.

I currently work as the Director of Technology for Universal Mind. My primary responsiblity is managing the SpatialKey project and it has been an amazing experience. I have been spending a lot of time working with Amazon Ec2 and will share my experiences through the blog in the future. I truly believe that Cloud Computing is the IT platform of the future and we have built the SpatialKey architecture on top of Ec2.

Viewing Individual Entry / Main
January 30, 2004

I received the following question on the functionality of CF_Accelerate and wanted to share how I worked around it.

"Got a questions regarding the CF_Accelerate customtag you have created. The caching is set according to the querystring and filename right? Well when you have an application that requires users to login, a session will be set whether or not the user is logged in. Now here comes the problem. It doesn't matter whether you are logged in or not, the same pages and its querystrings will be used. So when you log in and the page is cached when you're logged out, the logged in user will still see the page as if the user was logged out. Because the check is being done by sessions.  Do you recognize this problem and do you have a solution to this, or areyou working on something to overcome this? "

This question caused me problems on my own site.  But there is an easy work around. CF_Accelerate without any arguments will exhibit this behavior. The cached is built in a tree based on three attributes:


  1. attributes.scriptName - first key defaults to the cgi.script_name
  2. attributes.primaryKey - second key defaults to the query string
  3. attributes.secondaryKey - third key defaults to the string "default"

The third key is not really used but it is there if you need it.  In your case you could use use a session variable as the secondaryKey to determine if the user is logged in and it will cache different data if they are logged in.  For example

<cf_accelerate secondaryKey="#session.loggedin#">

session.loggedin could be true/false or whatever you want.

On my site when I am logged in I don't cache the data. So I used something like

<cf_accelerate noCache="#session.IsLoggedIn#">

If a user is logged in the data is not cached at all. If a user comes to the site session.IsLoggedIn is false and the data comes from the cache. There may be a better solution, feel free to share your thoughts.



This is indeed a very easy solution. When you define usergroups, which have access to a specific piece of content, you can even use #session.loggedOn##userGroups#

userGroups variable can be passed like a List then.


  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      

Subject Archives
Amazon EC2 (15)
ColdFusionMX (155)
Corvette (3)
Flash Lite (4)
Flash Media Server (5)
Flash Player (3)
Flex (39)
General Web Dev (14)
HDTV (3)
Jboss (1)
Jquery (2)
JRun (59)
Max 2003 (3)
Other (33)
PC Hardware (16)
Software (17)
SpatialKey (7)
Wireless (8)
Working Out (1)

RSS Feed
Feed Listing
Corvette - October 2005 brandonpurcell's Corvette - October 2005 photoset
Macromedia ColdFusion MX

Featured Links
Stock Footage
Page Render Time:15 user:""