Open isrightkev opened 3 years ago
Use php artisan opcache:compile --force
Where in the php code do I do that?
Where in the php code do I do that?
Just paste this command in a terminal in your project directory.
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?
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');
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 ?