Hi,
I’m working with Coldbox 4.3 and have installed version 1.6 of the debugger module.
I have also defined 3 caches using the syntax below in my CacheBox.cfc
The debugger loads without error for the “defaultCache”. However when I try to change to one of the other caches I see the following error.
“The getCacheHits method was not found. Either there are no methods with the specified method name and argument types or the getCacheHits method is overloaded with argument types that ColdFusion cannot decipher reliably. ColdFusion found 0 methods that match the provided arguments. If this is a Java object and you verified that the method exists, use the javacast function to reduce ambiguity.”
I’ve done a search of my workspace and the function getCacheHits is not defined anywhere in the framework.
Is this a bug or am I missing something?
regards.
Michael
component{
/**
- Configure CacheBox for ColdBox Application Operation
*/
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 = 5,
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 = {
clearOnFlush=true,
diskPersistent=true,
maxElementsInMemory=500,
maxElementsOnDisk=3000,
memoryEvictionPolicy=‘LFU’,
overflowToDisk=true
}
}