appstract / laravel-opcache

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

Report exceptions #117

Closed milewski closed 3 years ago

milewski commented 3 years ago

Hi, if there is any exception thrown during the compilation it's completely ignored and the response from the API is just 500... there is no extra info to figure out what went wrong... so I have added a report() to at least get it logged into the logs and give more clues of why there was a 500 error...

milewski commented 3 years ago

Never mind this PR.. seems the OPcache just crashes randomly with apparently no reason...

Sometimes I get Zend OPcache could not compile file some other time it compiles successfully... so in the end, it is just cluttering the log files. I guess all these files it couldn't compile for no reason could be simply ignored.

milewski commented 3 years ago

I just realized the crash is due that it hit the opcache.max_accelerated_files limit...