That should do it. Then just change the variable per environment.
function staging(){
models.objectCaching = true;
}
--
You received this message because you are subscribed to the Google
Groups "ColdBox Platform" group.
To post to this group, send email to col...@googlegroups.com To
unsubscribe from this group, send email to
coldbox-u...@googlegroups.com
For more options, visit this group at
http://groups-beta.google.com/group/coldbox
For News, visit http://blog.coldbox.org
For Documentation, visit http://wiki.coldbox.org
//--------------------------------------------------------------------------
----------------------
//--------------------------------------------------------------------------
----------------------
string function detectEnvironment() {
return replace(createObject( 'java', 'java.net.InetAddress'
).getLocalHost().getHostName(),"-","","all" );
}
//--------------------------------------------------------------------------
----------------------
// Configuration settings for the testing / staging server
//--------------------------------------------------------------------------
----------------------
void function Federation() {
coldbox.debugMode = false;
coldbox.handlersIndexAutoReload = false;
coldbox.configAutoReload = false;
coldbox.debugPassword = "";
coldbox.reinitPassword = "";
//coldbox.handlerCaching = true;
//coldbox.eventCaching = true;
}
Regards,
Andrew Scott
http://www.andyscott.id.au/
> -----Original Message-----
> From: col...@googlegroups.com [mailto:col...@googlegroups.com] On
> Behalf Of CaptainPalapa
> Sent: Saturday, 4 December 2010 2:51 AM
> To: ColdBox Platform
> Subject: [coldbox:7066] Re: is there a way to disable model caching in
> development without reloading the config every request?
>
> --
> You received this message because you are subscribed to the Google Groups
> "ColdBox Platform" group.
> To post to this group, send email to col...@googlegroups.com To
> unsubscribe from this group, send email to coldbox-