Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Commit

Permalink
Update controller.php
Browse files Browse the repository at this point in the history
turned on block cache
  • Loading branch information
cdowdy committed Jan 16, 2014
1 parent 67a60ef commit 434ba76
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions magnific_popup/blocks/magnific_popup/controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ class MagnificPopupBlockController extends BlockController {
protected $btWrapperClass = 'ccm-ui';

// disabled cache during development
protected $btCacheBlockRecord = false;
protected $btCacheBlockOutput = false;
protected $btCacheBlockOutputOnPost = false;
protected $btCacheBlockOutputForRegisteredUsers = false;
// EDITED ON 16-01-2014 (January 16, 2014)
// turned on block cache
protected $btCacheBlockRecord = true;
protected $btCacheBlockOutput = true;
protected $btCacheBlockOutputOnPost = true;
protected $btCacheBlockOutputForRegisteredUsers = true;
protected $btCacheBlockOutputLifetime = CACHE_LIFETIME;


Expand Down Expand Up @@ -84,4 +86,4 @@ public function view() {
$this->set( 'images', $images );
$this->set( 'picture', $this->getPicture() );
}
}
}

0 comments on commit 434ba76

Please sign in to comment.