Template cache methods missing

Hi guys,

I've been using ColdBox 3.0.0 RC2-318-GENESIS-14:14, and when I
upgrade to the final ColdBox 3, I noticed that the
getViewCacheKeyPrefix() and getkeys() methods are missing. I am
caching views (but not the layouts) as outlined here:
http://www.aliaspooryorik.com/blog/index.cfm/e/posts.details/post/292

The getkeys() method is not important, I was just wondering why the
getViewCacheKeyPrefix() method was dropped. From digging though the
code it seems I can use the public property VIEW_CACHEKEY_PREFIX
instead, but that's not as clean as when it was encapsulated before.

Thanks,

- John

They should not be. They should still be there

Luis Majano
President
Ortus Solutions, Corp

Hi Luis,

When I do:

<cfdump var="#getColdBoxOCM("Template")#">

It returns:

component coldbox.system.cache.archive.MTCacheManager
        extends coldbox.system.cache.archive.CacheManager

I don't see getViewCacheKeyPrefix() in either of those classes. It is
in CacheBoxColdBoxProvider and CFColdBoxProvider, but tohse aren't
returned by getColdBoxOCM.

Thanks,

- John

Ok this means you are in compat mode and running the old cf7 compat cache engine. You need to remove the cache settings element from the confit and replace with the cacchebox config.

Luis Majano
President
Ortus Solutions, Corp

Ah right! Thanks Luis