Skip to content

Commit

Permalink
Clear cache when updating webhooks
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcel Pociot committed Feb 17, 2016
1 parent 968a6a9 commit cfa4b6e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Mpociot/CaptainHook/Webhook.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ public static function boot()
Cache::forget(self::CACHE_KEY);
});


static::updated(function ($results) {
Cache::forget(self::CACHE_KEY);
});

static::deleted(function ($results) {
Cache::forget(self::CACHE_KEY);
});
Expand Down

0 comments on commit cfa4b6e

Please sign in to comment.