Skip to content

Commit

Permalink
#345 - Support relative datetime formats to set max age
Browse files Browse the repository at this point in the history
  • Loading branch information
johanjanssens committed May 18, 2020
1 parent 9fbf354 commit 471b82a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function onAfterApplicationRoute(KEventInterface $event)
}

//Set the cache time
if(isset($route->query['cache']) && ctype_alnum($route->query['cache']))
if(isset($route->query['cache']))
{
$response->setMaxAge($route->query['cache']);
unset($route->query['cache']);
Expand Down

0 comments on commit 471b82a

Please sign in to comment.