> The only tip > I that seems important enough to share is that you should > code in a way that lets you ignore the cache or even rebuild > it so things are more convenient during development.
I've implemented something similar to the CFA trusted cache -- when each object is instantiated and stored in the application scope the current timestamp is also stored. If I pass a timecheck="true" var to my object store custom tag (not a CFC so it doesn't break encapsulation by using shared scopes) then I use the metadata for the instance to find out the path to the actual object and check the last modifed date against that stored. If the last modified date is greater then I refresh the stored instance. Doing this means that during development I know I've always got the latest instance to work from and I can turn it off in production to shave off a few milliseconds from the processing time. Of course if you've got stateful CFCs then this doesn't work so well because you don't necessarily want to overwrite them with a new copy (unless the only "stateful" thing about it is storing the DSN or similar). Tim. ------------------------------------------------------- RAWNET LTD - Internet, New Media and ebusiness Gurus. Visit our new website at http://www.rawnet.com for more information about our company, or call us free anytime on 0800 294 24 24. ------------------------------------------------------- Tim Blair Web Application Engineer, Rawnet Limited Direct Phone : +44 (0) 1344 393 441 Switchboard : +44 (0) 1344 393 040 ------------------------------------------------------- This message may contain information which is legally privileged and/or confidential. If you are not the intended recipient, you are hereby notified that any unauthorised disclosure, copying, distribution or use of this information is strictly prohibited. Such notification notwithstanding, any comments, opinions, information or conclusions expressed in this message are those of the originator, not of rawnet limited, unless otherwise explicitly and independently indicated by an authorised representative of rawnet limited. ------------------------------------------------------- ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [EMAIL PROTECTED] with the word 'unsubscribe cfcdev' in the message of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com).
