Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
elvincali opened this issue May 20, 2021 · 1 comment
Open

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

elvincali opened this issue May 20, 2021 · 1 comment

Comments

@elvincali
Copy link

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
Copy link

Stunext commented Feb 18, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants