RE: [coldbox:21090] Digest for coldbox@googlegroups.com - 20 Messages in 2 Topics

Guys Please help me im beginner in coldbox this cache issue really frustrating.

Thanks

Coldfusion Administration

Coldbox.cfc

function development(){

coldbox.debugPassword = “”;

coldbox.debugMode = true;

coldbox.reinitPassword = “”;

coldbox.handlerCaching = false;

coldbox.handlersIndexAutoReload = true;

coldbox.eventCaching = false;

}

Cachbox.cfc

defaultCache = {

objectDefaultTimeout = 0.1, // 120, ← Default two hours default

objectDefaultLastAccessTimeout = 30, //30 minutes idle time

useLastAccessTimeouts = true,

reapFrequency = 2,

freeMemoryPercentageThreshold = 0,

evictionPolicy = “LRU”,

evictCount = 1,

maxObjects = 300,

objectStore = “ConcurrentStore”, //guaranteed objects

coldboxEnabled = true

},

// Register all the custom named caches you like here

caches = {

// Named cache for all coldbox event and view template caching

template = {

provider = “coldbox.system.cache.providers.CacheBoxColdBoxProvider”,

properties = {

objectDefaultTimeout = 0.1, // 120, ← Default

objectDefaultLastAccessTimeout = 30,

useLastAccessTimeouts = true,

reapFrequency = 2,

freeMemoryPercentageThreshold = 0,

evictionPolicy = “LRU”,

evictCount = 2,

maxObjects = 300,

objectStore = “ConcurrentSoftReferenceStore” //memory sensitive

Look in the docs where there is a URL something like

yourdomain.com?reinit=whateveryourpassword

Also a google search turns up this

groups.google.com/forum/#!topic/coldbox/ALdeCT9nFz8

I am not sure if this has changed or not but the caching looks like it is off by default, views and handlers will be cached if the setting are true, but as you have made that change you MUST reinit the framework for these changes to take place or restart ColdFusion.

I am sure Brad or Joel will speak up with better details, but hopefully that gets you going.