appstract / laravel-opcache

Laravel Package for OPcache
MIT License
1.33k stars 118 forks source link

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

Open isrightkev opened 3 years ago

isrightkev commented 3 years ago

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 commented 3 years ago

Use php artisan opcache:compile --force

isrightkev commented 3 years ago

Where in the php code do I do that?

AEmad01 commented 3 years ago

Where in the php code do I do that?

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

isrightkev commented 3 years ago

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 commented 2 years ago

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');