Oops... I pasted the production config. In my local config, I am
setting singletonReload=true, but its not working. I have tested it by
setting it both ways and reiniting each time. I have also changed
other settings to make sure my environment is being detected correctly
(I also dumped getSetting('environment') to confirm). If this is the
correct place to change that setting, can you think of any other
settings that may be conflicting? Here are my two config setups:
Default for production:
coldbox = {
appName = "Kostizi",
eventName = "event",
debugMode = false,
handlersIndexAutoReload = false,
configAutoReload = false,
//Implicit Events
defaultEvent = "Page.build",
requestStartHandler = "Main.onRequestStart",
requestEndHandler = "",
applicationStartHandler = "Main.onAppInit",
applicationEndHandler = "",
sessionStartHandler = "",
sessionEndHandler = "",
missingTemplateHandler = "",
//Extension Points
UDFLibraryFile = "includes/helpers/ApplicationHelper.cfm",
coldboxExtensionsLocation = "",
modulesExternalLocation = [],
pluginsExternalLocation = "",
viewsExternalLocation = "",
layoutsExternalLocation = "",
handlersExternalLocation = "",
requestContextDecorator = "",
//Error/Exception Handling
exceptionHandler = "Main.onException",
onInvalidEvent = "Page.build",
customErrorTemplate = "",
//Application Aspects
handlerCaching = false,
eventCaching = true,
proxyReturnCollection = false,
flashURLPersistScope = "session",
messagebox_style_override = true
};
caches = {
// Named cache for all coldbox event and view template caching
template = {
provider =
"coldbox.system.cache.providers.CacheBoxColdBoxProvider",
properties = {
objectDefaultTimeout = 120,
objectDefaultLastAccessTimeout = 30,
useLastAccessTimeouts = true,
freeMemoryPercentageThreshold = 0,
reapFrequency = 2,
evictionPolicy = "LRU",
evictCount = 2,
maxObjects = 300,
objectStore = "ConcurrentSoftReferenceStore" //memory sensitive
}
}
};
//WireBox Integration
wireBox = {
enabled = true,
singletonReload=false
};
Development overrides:
function local(){
coldbox.ConfigAutoReload = true;
coldbox.HandlersIndexAutoReload = true;
coldbox.HandlerCaching = false;
coldbox.EventCaching = false;
coldbox.debugMode = true;
coldbox.EnableBugReports = true;
coldbox.EnableColdboxLogging = false;
coldbox.useSSL = 0;
wirebox.singletonReload = true;
}
I have been using coldbox since sometime around version 2.4 and have
migrated my settings quite a few times. I wouldn't be surprised if we
are using some antiquated settings, or if maybe some of them are
conflicting with each other.
Thanks for your help on this.
Jeff
On Feb 2, 1:42 pm, Curt Gratz <
gra...@compknowhow.com> wrote:
> Jeff,
>
> In development, you want the singletonReload set to true.
>
> wirebox.singletonreload = true;
>
> False for production.
>
> That should take care of it for you.
>
> Curt
> ________________________________________
> From:
col...@googlegroups.com [
col...@googlegroups.com] on behalf of Jeff Reese [
therm...@gmail.com]