I am using cachebox that comes with cb 3.0.
If i have 2 caches (default and template) all works ok with template
cache having my views in there.
If i add a further cache called app with no code changes it has the
exact content of my template cache.
Do determine if it was just a reporting thing i added this..
<cfdump var="#getColdboxOCM("template").get("CF_VIEW-:MODULES/XSITE/
NEWSTICKER")#"><cfabort>
and this
<cfdump var="#getColdboxOCM("template").get("CF_VIEW-:MODULES/XSITE/
NEWSTICKER")#"><cfabort>
They return the cached item contents i.e. both caches contain the
item.
function configure(){
// The CacheBox configuration structure DSL
cacheBox = {
// LogBox config already in coldbox app, not needed
// logBoxConfig = "coldbox.system.web.config.LogBox",
// The defaultCache has an implicit name "default" which is a
reserved cache name
// It also has a default provider of cachebox which cannot be
changed.
// All timeouts are in minutes
defaultCache = {
objectDefaultTimeout = 120, //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.CFColdBoxProvider",
properties = {
objectDefaultTimeout = 120,
objectDefaultLastAccessTimeout = 30,
useLastAccessTimeouts = true,
freeMemoryPercentageThreshold = 0,
reapFrequency = 2,
evictionPolicy = "LRU",
evictCount = 2,
maxObjects = 300,
objectStore = "ConcurrentSoftReferenceStore" //memory sensitive
}
},
app = {
provider = "coldbox.system.cache.providers.CFColdBoxProvider",
properties = {
objectDefaultTimeout = 120,
objectDefaultLastAccessTimeout = 30,
useLastAccessTimeouts = true,
freeMemoryPercentageThreshold = 0,
reapFrequency = 2,
evictionPolicy = "LRU",
evictCount = 2,
maxObjects = 300,
objectStore = "ConcurrentSoftReferenceStore" //memory sensitive
}
}
}
};
}