appstract / laravel-opcache

Laravel Package for OPcache
MIT License
1.34k stars 119 forks source link

opcache:clear not working #137

Open jiteshtandel opened 2 years ago

jiteshtandel commented 2 years ago

This package was working fine when I installed initially but now I am facing very strange issue just to clear opcache using the following command. php artisan opcache:clear

My concern is my Laravel application executes previous version code even after clearing the opacache several times. I believe It must have to execute latest source code. I tried after php-fpm reload. I also restarted my Apache Fast CGI server. I even tried after executing the following Artisan commands but it still executes previous version code for me.

php artisan config:cache
php artisan route:cache
php artisan view:cache
php artisan clear-compiled
php artisan optimize

Here are my application environments if anybody can help me to figure out the issue.

PHP Version: 7.4.21
Laravel Version: 8.42.1
laravel-opcache package version: 4.0.2

Opcache Status:

opcache-status-screenshot

Opcache Configuration:

opcache-config-screenshot

I am not sure what I am missing. Please help me to fix it. Any kind of help will be appreciate.

Thanks