Skip to content

Commit

Permalink
docs: garbage collection in worker mode
Browse files Browse the repository at this point in the history
  • Loading branch information
dunglas committed Feb 3, 2023
1 parent 993bfa8 commit 657dd95
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/worker.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ do {

// Do something after sending the HTTP response
$myApp->terminate();

// Call the garbage collector to reduce the chances of it being triggered in the middle of a page generation
gc_collect_cycles();
} while ($running);

// Cleanup
Expand Down

0 comments on commit 657dd95

Please sign in to comment.