-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathopcache.ini
More file actions
32 lines (23 loc) · 777 Bytes
/
Copy pathopcache.ini
File metadata and controls
32 lines (23 loc) · 777 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
; OPcache for Laravel production (high RPS)
opcache.enable=1
opcache.enable_cli=0
; Memory (increase if you have RAM)
opcache.memory_consumption=256
; Strings buffer improves framework-heavy apps (Laravel benefits a lot)
opcache.interned_strings_buffer=16
; Enough for Laravel + vendor + packages
opcache.max_accelerated_files=30000
; IMPORTANT for production (no file stat checks)
opcache.validate_timestamps=0
opcache.revalidate_freq=0
; Performance optimizations
opcache.fast_shutdown=1
opcache.enable_file_override=1
; JIT is NOT useful for Laravel (disable unless special case)
opcache.jit=0
; Avoid fragmentation issues under load
opcache.max_wasted_percentage=10
; Improve concurrency stability
opcache.use_cwd=1
opcache.save_comments=1
opcache.load_comments=1