elcobvg / laravel-opcache

Custom OPcache Cache Driver for Laravel. Faster than Redis, Memcache or APC.
MIT License
45 stars 12 forks source link

$model->delete() fails #12

Open ITwrx opened 6 years ago

ITwrx commented 6 years ago

$model->delete() fails for some reason.

same exact code works fine with apc activated in .env and laravel-opcache still installed and without reverting

use ElcoBvg\Opcache\Model;

back to

use Illuminate\Database\Eloquent\Model;

. i thought cache flush wasn't working at first, but the row is not actually being deleted.

thanks

elcobvg commented 6 years ago

Hmm, that is curious because the extended classes don't touch on any of that. Have you tried it with opcache activated but with the regular Eloquent Model?

I'll look into this as soon as I have some time, but unfortunately I am rather busy at the moment.

ITwrx commented 6 years ago

by "opcache activated" do you mean "opcache" or "laravel-opcache". i didn't disable opcache when i switched back to apc, so that was tested. i didn't try laravel-opcache with regular laravel model but that will just give the "at_state" error, i think. apc with opcache and normal eloquent model should also work fine, as i use that in production.

no rush. just thought i'd mention it just in case it's not my fault somehow. :)