http://www.perlmonks.org?node_id=1141459


in reply to Re: Creating a Moose object either from args or from cache
in thread Creating a Moose object either from args or from cache

Thanks - that makes it a little clearer :D

Got it working. Now all I need is a way to cache_set right before DEMOLISH(). I tried it within the DEMOLISH and ended up with recursion issues.

Is there a way to call a method right before DEMOLISH is called. I just tried before 'DEMOLISH' as a hunch, and it didn't work as hoped :D

As it stands, I'm just adding a bunch of after calls around the expensive, data creating methods.