Skip to content

Commit 8a44fb0

Browse files
committed
[php] laravel apply opcache preloading
1 parent 193929c commit 8a44fb0

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

frameworks/PHP/laravel/deploy/conf/php.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1886,6 +1886,9 @@ opcache.huge_code_pages=1
18861886
; Prevent name collisions in chroot'ed environment.
18871887
;opcache.validate_root=0
18881888

1889+
opcache.preload_user=www-data
1890+
opcache.preload=/laravel/opcache_preload.php
1891+
18891892
[curl]
18901893
; A default value for the CURLOPT_CAINFO option. This is required to be an
18911894
; absolute path.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?php
2+
3+
require __DIR__ . '/vendor/autoload.php';

0 commit comments

Comments
 (0)