Skip to content

Commit

Permalink
API Update code to reflect changes in silverstripe/framework
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Nov 10, 2024
1 parent 1bc842d commit 6ebd9af
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 6ebd9af

Please sign in to comment.