Skip to content
This repository has been archived by the owner on May 7, 2019. It is now read-only.

Commit

Permalink
Make Upload#invalidateCache() non-static
Browse files Browse the repository at this point in the history
  • Loading branch information
TheReverend403 committed Jul 5, 2016
1 parent 115f045 commit df8cebc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Models/Upload.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ public static function count()

public function save(array $options = [])
{
static::invalidateCache();
$this->invalidateCache();
$this->user->invalidateCache();

return parent::save($options);
}

public static function invalidateCache()
public function invalidateCache()
{
Cache::forget('uploads');
Cache::forget('uploads_total_size');
Expand Down

0 comments on commit df8cebc

Please sign in to comment.