Skip to content

Commit

Permalink
Fix for middleware and cached result
Browse files Browse the repository at this point in the history
  • Loading branch information
andrevanzuydam committed Dec 5, 2023
1 parent 8bd026f commit c7ab2c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tina4/Routing/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ public function handleRoutes($method, $url, array $customHeaders=[], $customRequ
}
}
else
if ($route["cached"]) {
if ($route["cached"] && empty($result)) {
$cacheResult = $this->getCacheResponse($url.$method);
if ($cacheResult !== null && $url !== "/cache/clear" && $url !== "/migrate" && $url !== "/migrate/create") {
Debug::message("$this->GUID Got cached result for $url", TINA4_LOG_DEBUG);
Expand Down

0 comments on commit c7ab2c3

Please sign in to comment.