@@ 48-52 (lines=5) @@ | ||
45 | $cachedModel::deleted($closure); |
|
46 | } |
|
47 | ||
48 | Extension::saved(function ($model) { |
|
49 | $this->app['cache.store']->forget('extension.' . $model->id); |
|
50 | $this->app['cache.store']->forget('extensions.widgets'); |
|
51 | $this->app['cache.store']->forget('extensions.all'); |
|
52 | }); |
|
53 | Extension::deleted(function ($model) { |
|
54 | $this->app['cache.store']->forget('extension.' . $model->id); |
|
55 | $this->app['cache.store']->forget('extensions.widgets'); |
|
@@ 53-57 (lines=5) @@ | ||
50 | $this->app['cache.store']->forget('extensions.widgets'); |
|
51 | $this->app['cache.store']->forget('extensions.all'); |
|
52 | }); |
|
53 | Extension::deleted(function ($model) { |
|
54 | $this->app['cache.store']->forget('extension.' . $model->id); |
|
55 | $this->app['cache.store']->forget('extensions.widgets'); |
|
56 | $this->app['cache.store']->forget('extensions.all'); |
|
57 | }); |
|
58 | } |
|
59 | ||
60 | /** |