RE: [coldbox:3319] Re: getModel and caching

Yes. Whether or not getModel returns a cached object or a brand new
object is entirely based on the caching settings you define in the
cfcomponent tag of the object being created.


Remember that cache=false is optional, that is the default setting. So if they won’t be cached, just don’t add any cache metadata to it

Wait, what? So it will give me two new cars in my previous example by
default? And if I want to use CB caching I have to explicitly say
cache="true" (in which case in my previous example I'd get the same
car object over and over...)?