Skip to content

PHP-FPM port and clearing opcache

The Stratus CLI can also be used to clear the opcache instead of this tool.

If your code deploys use symlinks or you think something is cached in the PHP opcache, you can clear it via the php-fpm port.

On all our Stratus sites, that hostname:port is phpfpm:9000 There are several ways to clear it, such as Cachetool, configure cache tool with these settings in .cachetool.yml

bash adapter: fastcgi fastcgi: php-fpm:9000 temp_dir: /srv/tmp

For PHP 7.0.x, you will need to download the following file:

wget -c

For PHP 7.1 or 7.2, you will need:

wget -c

The file must be named .cachetool.yml. CacheTool will look for this file in the current directory