laravel-opcache icon indicating copy to clipboard operation
laravel-opcache copied to clipboard

Compiling directly from facade without sending an HTTP request

Open franck-grenier opened this issue 10 months ago • 0 comments

Hello, I'm trying to interact with my OPcache directly with your facade without sending an HTTP request.

I created custom commands with the same names to override yours. The commands seem to work. Compiling, getting the status and clearing do seem to occur correctly without any errors.

But, when I check the number of cached scripts, I can see that it doesn't change neither on compiling nor on clearing.

My Laravel version is 11.

My PHP runs in a Docker container. Naturally, I launch the artisan commands from within the container.

It works when I use your commands sending the HTTP requests with the token.

Do you think it should work ? Or maybe there is something I don't understand with PHP-FPM and OPcache.

Thanks for your help

franck-grenier avatar Feb 27 '25 22:02 franck-grenier