Skip to content

Commit

Permalink
API Update code to reflect changes in silverstripe/framework (#655)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli authored Nov 26, 2024
1 parent 1bc842d commit 430ae1e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -1518,12 +1518,13 @@ protected function filterFilename($name)
}, $parts ?? []));
}

public function flushCache($persistent = true)
public function flushCache($persistent = true): static
{
parent::flushCache($persistent);
static::reset();
ImageShortcodeProvider::flush();
FileShortcodeProvider::flush();
return $this;
}

public static function reset()
Expand Down

0 comments on commit 430ae1e

Please sign in to comment.