Skip to content

Commit

Permalink
Update StaticpagesControllerExtension.php
Browse files Browse the repository at this point in the history
  • Loading branch information
michelsteege authored Aug 23, 2018
1 parent b4276b4 commit 19108d2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Extensions/StaticpagesControllerExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ public function onAfterInit()
$skipCache = $this->owner->getRequest()->getVar('skipcache');
$noCache = ($skipCache && $skipCache == 1) ? true : $noCache;

$quickEdit = $this->owner->getRequest()->getVar('qe');
$noCache = $quickEdit ? true : $noCache;

$noCache = Versioned::get_reading_mode() == Versioned::DRAFT ? true : $noCache;

if (!$noCache) {
Expand Down

0 comments on commit 19108d2

Please sign in to comment.