23 Dec
2010
23 Dec
'10
6:54 p.m.
On Thu, Dec 23, 2010 at 12:09 PM, Maurice Mengel <mauricemengel@gmail.com> wrote:
Dear Dancers,
i would like to activate my caching mechanism if perl uses more than a certain amount of memory.
Two questions 1) is this the right approach or should I look for some other criterion to active cache? 2) How to do it?
I looked at - http://perldoc.perl.org/perldebguts.html#Debugging-Perl-memory-usage and - Memory::Usage, but this seems not to work from under Dancer.
Thanks!
Maurice
Based on my understanding, the caching mechanism uses memory to cache the routes. So it does not make sense to me to want to turn on the cache when your system memory is low. -Naveed