Refresh OPcache
The opcache:refresh command allows you to refresh (clear) PHP OPcache on a server.
ploi opcache:refresh
Refresh OPcache on a specific server:
ploi opcache:refresh --server=blue-ocean
Options
| Option | Description |
|---|---|
--server= | The server name or ID |
Use this command after deploying new code to ensure PHP loads the updated scripts instead of cached versions.