There's a configuration to cycle php-fpm workers every X requests:
https://www.php.net/manual/en/install.fpm.configuration.php#...
Good to know!