appstract / laravel-opcache

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

Question: How to use it with Laravel Octane? #128

Closed litan1106 closed 3 years ago

litan1106 commented 3 years ago

Should we run it after we start the octane command?

php artisan octane:star

php artisan opcache:clear

php artisan opcache:compile {--force}

nasyrov commented 3 years ago

@litan1106 hi there, there's no point in using this package with Octane. Please check the way Octane works.

litan1106 commented 3 years ago

I think we still need cache the custom application codes. It seemed faster with opcached.

nasyrov commented 3 years ago

@litan1106 with Octane your code loads once, you need opache when you use something like php-fpm