Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonvarga committed Oct 2, 2024
1 parent 76bb2c4 commit 4ed36ba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/StaticCaching/Middleware/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ public function handle($request, Closure $next)

private function handleRequest($request, Closure $next)
{
// When the file driver loads a cached page, it logs a debug message explaining
// that it's being serving via PHP and rewrite rules are not set up correctly.
// Since we're intentionally doing it here, we should prevent that warning.
if ($this->cacher instanceof FileCacher) {
$this->cacher->preventLoggingRewriteWarning();
}
Expand Down

0 comments on commit 4ed36ba

Please sign in to comment.