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

opcache.dups_fix must be enabled, or run with --force #127

Open
isrightkev opened this issue Mar 26, 2021 · 5 comments
Open

opcache.dups_fix must be enabled, or run with --force #127

isrightkev opened this issue Mar 26, 2021 · 5 comments

Comments

@isrightkev
Copy link

isrightkev commented Mar 26, 2021

hi im getting this message {"result":{"message":"opcache.dups_fix must be enabled, or run with --force"}}

i can turn on opcache.dups_fix on my shared host

in Compile.php its asking for a option:

response = $this->sendRequest('compile', ['force' => $this->option('force') ?? false]);

where do i set option force to true ?

@AEmad01
Copy link

AEmad01 commented Mar 26, 2021

Use php artisan opcache:compile --force

@isrightkev
Copy link
Author

Where in the php code do I do that?

@AEmad01
Copy link

AEmad01 commented Mar 27, 2021

Where in the php code do I do that?

Just paste this command in a terminal in your project directory.

@isrightkev
Copy link
Author

Is there no way to doing this through php so I don’t have to log in to cpannel every time I make a change?

@gtjamesa
Copy link

Is there no way to doing this through php so I don’t have to log in to cpannel every time I make a change?

You can programmatically execute artisan commands:

Artisan::call('opcache:compile --force');

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

3 participants