Skip to content

Commit a7632a6

Browse files
authored
Remove mention of disabling view expiration check
The PR to allow disabling checks for expired views (#31206) was reverted because it didn't account for third party views. The docs still mentions the 'expires' option and this confused as I didn't see it make any difference. Digging into the view Complier code made me realize that this update must have been removed.
1 parent ac462be commit a7632a6

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

views.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -228,9 +228,3 @@ Compiling views during the request negatively impacts performance, so Laravel pr
228228
You may use the `view:clear` command to clear the view cache:
229229

230230
php artisan view:clear
231-
232-
Typically, you can assume that views will **never** be modified in your production environment. Therefore, you can usually disable the file modification checks Laravel makes to determine if views are expired by modifying the `expires` option within your `view` configuration file:
233-
234-
'expires' => env('APP_ENV') !== 'production',
235-
236-
> {note} You must run `php artisan view:cache` during your deployment process to disable checking for expired views.

0 commit comments

Comments
 (0)