On Wednesday, January 12, 2011 at 4:52 PM, adk wrote:
Thanks Aaron - I'll give your blog post a lookover!
I think a config setting similar to the handler and event caching bool
would be a great addition to the configure API. By the way
getColdBoxOCM().clearAllViews() on onRequestStart does *nott* seem to
work...
On Jan 12, 4:18 pm, Aaron Greenlee <aarongreen...@gmail.com> wrote:You can see an example of some dev-only stuff on this blog post:http://aarongreenlee.com/share/coldfusion-coldbox-client-source/
I have a snippet from my ColdBox config showing how to register an
interceptor only in a specific environment.
You can read about clearing the items from the cache here:http://wiki.coldbox.org/wiki/CacheBox.cfm(clearAll()) for example.
--
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
To post to this group, send email to col...@googlegroups.com
To unsubscribe from this group, send email to coldbox-u...@googlegroups.com
For more options, visit this group at http://groups-beta.google.com/group/coldbox
For News, visit http://blog.coldbox.org
For Documentation, visit http://wiki.coldbox.org
One technique I have used is when you set the view caching to set true based on a setting.
event.setView(name=”home”, cache= getSetting(“cacheViews”));
Then I can switch the cacheViews flag based on the environment pretty easily. I try (try being the key word) to do a setting for anything I would want to switch per environment because it is so nice and easy to do.
Curt