[Dancer-users] route_cache breaks with multiple parameters

Stéphane stephane at shimaore.net
Mon May 3 12:18:29 CEST 2010


Hello,

I've opened bug report 57158 where the following code:

   set route_cache => 1;

   get '/number/:cluster/:category' => sub {
     # your code here
   };

will provide incorrect params after a few attempts.

I have had the same issue earlier with code like this:

   get '/number/:cluster/*' => sub {
     # your code here
   };

using splat(), but at the time I thought I had missed something in the 
documentation. I suspect this might be due to a similar problem.

Running with route_cache: 0 will work around the issue. HTH,
Stéphane


More information about the Dancer-users mailing list