I have noticed that php-fpm is writing something to the disk when I post raw data (~100KB). The application is blank:
<?php exit; ?>
How PHP handles post data? Is it kept in memory or it writes to the disk?
I have noticed that php-fpm is writing something to the disk when I post raw data (~100KB). The application is blank:
<?php exit; ?>
How PHP handles post data? Is it kept in memory or it writes to the disk?
Turns out the answer is YES. PHP writes data into upload_tmp_dir for POST requests.
To avoid PHP writing to the disk you can use ram drive (tmpfs on FreeBSD).