[Dancer-users] activate cache based on memory usage

Naveed Massjouni naveedm9 at gmail.com
Thu Dec 23 19:54:17 CET 2010

On Thu, Dec 23, 2010 at 12:09 PM, Maurice Mengel
<mauricemengel at 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.

More information about the Dancer-users mailing list