Skip to content

Commit

Permalink
Update StaticpagesControllerExtension.php
Browse files Browse the repository at this point in the history
  • Loading branch information
michelsteege authored May 1, 2018
1 parent 389cd2a commit 1bf9ed2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Extensions/StaticpagesControllerExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public function onAfterInit()
if (Director::isDev() || Permission::check('ADMIN')) {
$controller = new StaticpagesController();
if ($flush == 'all') {
$controller->removeAll();
$controller->removeAll(true);
} else {
$controller->removeCacheForURL($this->owner->AbsoluteLink());
}
Expand Down

0 comments on commit 1bf9ed2

Please sign in to comment.