toknsit / laravel-opcache-manager
manager for php opcache
1.0.1
2021-09-03 09:18 UTC
Requires
- php: ^7.1.3|^8.0
- laravel/framework: ^5.6|^6.0||^7.0|^8.0
README
opcache manager for laravel
give a command opcache-manager:clear
to reset opcache of web server from cli, more auto, more simple
workflow
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: finishLoading
todo
- a manager api/view to get opcache status