Skip to content

opcache:clear not working #137

@jiteshtandel

Description

@jiteshtandel

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions