Skip to content

Commit 58a7b75

Browse files
committed
ref(franken): update frankenphp.md
1 parent 17cb197 commit 58a7b75

File tree

1 file changed

+21
-15
lines changed

1 file changed

+21
-15
lines changed

frankenphp.md

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -145,21 +145,21 @@ uncomment
145145
so it will looks like this
146146

147147
```caddyfile
148-
frankenphp {
149-
num_threads 20 # Optimal: 16 workers + 4 handling threads
150-
max_threads auto # Keep stable, no dynamic scaling
151-
152-
worker {
153-
watch
154-
155-
file ./public/index.php
156-
num 16 # 2 workers per CPU core (8 cores * 2) - optimal balance
157-
}
158-
159-
php_ini opcache.preload ""
160-
php_ini opcache.revalidate_freq 0
161-
php_ini opcache.validate_timestamps 1
162-
}
148+
frankenphp {
149+
num_threads 20 # Optimal: 16 workers + 4 handling threads
150+
max_threads auto # Keep stable, no dynamic scaling
151+
152+
worker {
153+
watch
154+
155+
file ./public/index.php
156+
num 16 # 2 workers per CPU core (8 cores * 2) - optimal balance
157+
}
158+
159+
php_ini opcache.preload ""
160+
php_ini opcache.revalidate_freq 0
161+
php_ini opcache.validate_timestamps 1
162+
}
163163
```
164164

165165
why ?
@@ -203,6 +203,12 @@ frankenphp reload --config=/etc/frankenphp/Caddyfile
203203

204204
Go to http://localhost:8081/en/blog/, if you reload it will hard reload the browser
205205

206+
if you found it stuck at loading run command below in terminal
207+
208+
```bash
209+
make down-worker && make up-worker
210+
```
211+
206212
now let's open file ./src/Controller/BlogController.php
207213

208214
and uncommented

0 commit comments

Comments
 (0)