TomFrost/Hydrogen — Issue #13: Route Caching
Author: TNBBill
Created: 2012-01-28 02:03:43+00:00
State: open

route caching currently doesn't seem to take HTTP Verb into account

For example

```php
$router->post('/(:controller(/:function(/:*args)))',
array('controller' => 'home','function' => 'index'),
array('controller' => '\vespora\controllers\main\%{controller|capfirst}Controller',
'function' => '%{function|lower}_post'));

$router->request('/(:controller(/:function(/:*args)))',
array('controller' => 'home','function' => 'index' ),
array('controller' => '\vespora\controllers\main\%{controller|capfirst}Controller'));
```

when the following routes are added to the route, the first request GET: /user/login, maps properly as expected, to \vespora\controllers\main\UserController->login()

However, when the login page posts back to itself, it calls \vespora\controllers\main\UserController->login() rather then \vespora\controllers\main\UserController->login_post()