Re: are queries in CFC methods not allowed to be cached?
ahhh n/m brain fart. reason it wasn't caching is cause have date parameter with now() as the value. DURR :P ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339832 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: are queries in CFC methods not allowed to be cached?
Yuilang, On Mon, Dec 6, 2010 at 2:46 PM, Yuliang Ruan wrote: > > put a cachedWithin in my cffunction and it never retrieves the cached > version. even when i'm hitting F5 back to back. > > > what's the deal? haven't found anything in docs saying u can't query cache > in CFC > You can certainly cache a query within a CFC. Perhaps you could share the code that creates the cachespan and runs the query, along with an explanation of how you know a cached version is not being used. -- Thanks, Tom Tom McNeer MediumCool http://www.mediumcool.com 1735 Johnson Road NE Atlanta, GA 30306 404.589.0560 ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339831 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
are queries in CFC methods not allowed to be cached?
put a cachedWithin in my cffunction and it never retrieves the cached version. even when i'm hitting F5 back to back. what's the deal? haven't found anything in docs saying u can't query cache in CFC ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339830 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm