Skip to content

Commit

Permalink
Update Router.php
Browse files Browse the repository at this point in the history
  • Loading branch information
usernane committed Dec 9, 2024
1 parent d11cc7a commit bc1f14c
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions webfiori/framework/router/Router.php
Original file line number Diff line number Diff line change
@@ -1464,16 +1464,7 @@ private function routeFound(RouterUri $route, bool $loadResource) {
* @throws RoutingException
*/
private function searchRoute(RouterUri $routeUri, string $uri, bool $loadResource, bool $withVars = false): bool {
$data = Cache::get($uri);

if ($data !== null) {
Response::write($data['body']);
Response::setCode($data['http-code']);
foreach ($data['headers'] as $headerObj) {
Response::addHeader($headerObj->getName(), $headerObj->getValue());
}
return true;
}
$pathArray = $routeUri->getPathArray();
$requestMethod = Request::getMethod();
$indexToSearch = 'static';

0 comments on commit bc1f14c

Please sign in to comment.