appstract / laravel-opcache

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

Allow to cache the rest of files even when one of them is not cacheable #126

Closed eduardor2k closed 1 year ago

eduardor2k commented 3 years ago

Some files may have sintax errors, since the vendor directory may not be under your control, it should better to catch Throwable instead of Exception, to allow to cache the rest of the files.

I also added the uncompiled list of files with errors to the output, to show the list of files that weren't cached.

Stunext commented 2 years ago

This is a great addition to avoid the large number of errors some users get and eliminates the need to add files to exclude by simply ignoring the ones that cause problems. Too bad the project seems abandoned.