singleton question

If I cache a model component using
    component output="false" cache="true" {...
I can see the statistics regarding the component (hits, time last
access, etc) in the debug cache report.

If I cache the component using
    component output="false" singleton="true" {...
It is persisted (I can see the persistence of variables in the model)
but it does not appear in the debug cache report.

Is there a way to monitor the performance/usage of the singleton scope?

All my CacheBox/WireBox configs are pretty much standard.

Bob

Bob,

singletons are stored inside the singleton scope object of firebox. There is no visualizer at this point, but you can easily add a panel yourself around this.

wirebox.getScope(“SINGLETON”).getSingletons()

That gives you all the stored singletons.

Luis F. Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Social: twitter.com/lmajano facebook.com/lmajano

Luis,

Thanks!

If I can take a moment... I've worked with a lot of software over
the years. In almost all cases, two questions eventually arise:
1) How can I make this package do something that it doesn't currently do?
2) Why the hell did the idiots who wrote this do 'X' the way they did it?

With Coldbox, I find that there is almost always an elegant answer to
#1. Somewhere between the various config files, request context
decoration, plugin extensions and interceptors, I've been able to to
everything I've needed (so far) with ZERO modifications to the
underlying Coldbox code. That is rare and much appreciated.

With regard to #2, I've learned to be patient when I have these
moments with Coldbox because eventually there is an "aha moment" when
I realize that the problem was my own lack of understanding or
knowledge. Sometimes I wish the answer was just right there in the
doc but studying the code has made me a better Coldbox user and a
better developer in general.

Bob

Gracias Bob

Luis F. Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Social: twitter.com/lmajano facebook.com/lmajano