opcache manager for laravel
give a command opcache-manager:clear
to reset opcache of web server from cli, more auto, more simple
I am using php deployer,so just add a task opcache:reset
after deploy
to clear opcache. The workflow is like this . Also you should be able to use it in other deployment solution
sequenceDiagram
participant A as deploy tool
participant B as php-cli
participant C as php-fpm(nginx)
A->>B: time to clear opcache
B-->>B: create a signed url
B->>C: access the url to reset opcache
C->>B: success
B->>A: finish
- a manager api/view to get opcache status