> I was flipping through the documentation, and it mentions
> that CFLOCKs should be used around CFX custom tags. But it
> doesn't say anything about CFML custom tags.
>
> Does anyone have any thoughts, opinions, observations, or
> real world experiences to share on this topic? I would
> imagine that the threading issues surrounding CFX tags do
> not pertain to CFML tags. But, feedback is welcome.
The docs suggest placing CFLOCK around CFX tags strictly for threading
issues. Many CFX tags are not thread safe internally (I think Forta's
CFX_Spell is the favorite tag to pick on here) and have the potential to
crash or hang your server if not properly locked. As a side note, our
company always locks CFX tags using the CFX_tagname as the lock name.
Assuming all apps on the server follow this same rule, this ensures that
it's locked and safe across multiple applications.
Locking CFML tags should not be needed. If your CFML tag uses application,
server, or session variables internally, I would suggest locking them within
the tag. You should always be looking to reduce the amount of locked
runtime to an absolute minimum.
-Cameron
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists