appstract / laravel-opcache

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

Does this affect all the PHP projects you have? #132

Open elvincali opened 3 years ago

elvincali commented 3 years ago

I installed the package in a laravel project and compiled, then I went to work in another laravel project and I realized that my changes were not applied, what I did was go to the other project to execute "php artisan opcache: clear", and in my another project recently I could see my changes.

is there any way to enable opcache for a single project ?. Since doing it with this package affects all my projects.

Stunext commented 2 years ago

Answer to title question: Yes... Answer at the end of the comment: No.

Probably, since the Opcache configuration is for PHP in general, it is not tied to the project. Although there is an option so that from time to time it actively updates the cache with the changes in the files but some performance is lost. I do not recommend it.