Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

FrenchFryNinja's avatar

Cached Views Do Not Clear... I think?

My view states won't reload on after:

php artisan down
git pull xxxx
composer install
// other server config scripts for secuirty
php artisan up

This has happened twice now. Once on dev, another time on test. Completely re-installing from source does nothing as well. I'm moving into production in 2 weeks, and I'm concerned about running updates in the future and not having the changes promulgate prior to the end of the maintenance window.

So I've tried it all:

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

I've updated opcache to these settings as in this trouble ticket https://github.com/laradock/laradock/issues/355

extension=opcache.so
opcache.enable="1"
opcache.memory_consumption="256"
opcache.use_cwd="0"
opcache.fast_shutdown="1"
opcache.max_file_size="0"
opcache.validate_timestamps="1" // Modify 0 to 1
opcache.revalidate_freq="0" // Add this line

Subsequently I've done systemctl restart httpd and rebooted the server...

Changes are not reflecting.

And check this part out. I've even rebuilt the project by doing rm -rf against the project directory, reloading from git, composer install and still nada. Absolutamente nada.

I'm running CentOS and Apache. And I just don't know where else to look. Any ideas?

0 likes
3 replies
bheath's avatar
bheath
Best Answer
Level 3

I believe its your OPCache. Did you install the opcache package? If so I believe you can do

php artisan opcache:clear
Snapey's avatar

Does it work when you hard refresh the client browser? You should not need to do all this stuff in Laravel, but if the client has the view cached...

1 like
FrenchFryNinja's avatar

Had to run opcache:clear as root. I was getting a success message with no changes as myusername@host. But it was an opcache issue. Thanks for all your help.

Please or to participate in this conversation.