CC: | perl [...] minty.org |
Subject: | route caching fails to spot new routes |
With:
* auto_reload: 1 set in environments/development.yaml
* the url localhost:3000/barfly
* using plackup
Given the following two routes defined in the same file
get '/barfly' => sub {
template 'fly';
};
get '/bar*' => sub {
template 'bar';
};
Adding "return pass();" to the top of the barfly route (and without
restarting the server) results in the bar* route being shown, as expected.
However, removing the entire route for barfly, leaving only the bar*
route doesn't cause the server to notice the change and reload the
routes. We continue to get the output of fly.tt until the server is
reloaded.