File tree Expand file tree Collapse file tree 1 file changed +21
-15
lines changed Expand file tree Collapse file tree 1 file changed +21
-15
lines changed Original file line number Diff line number Diff line change @@ -145,21 +145,21 @@ uncomment
145145so 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
165165why ?
@@ -203,6 +203,12 @@ frankenphp reload --config=/etc/frankenphp/Caddyfile
203203
204204Go 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+
206212now let's open file ./src/Controller/BlogController.php
207213
208214and uncommented
You can’t perform that action at this time.
0 commit comments