Top Lines

Disable Block Caching in Concrete5

by Dave Reeder , 10 July 2015

Dave Reeder
Disable Block Caching in Concrete5
Sometimes blocks don't work well if you run Concrete5's cache on them. Imagine the state of a block changes somehow, you may not want this to cache and appear differently to it's default state.

To disable block caching for a Concrete5 block, simply open the blocks controller.php and amend/add the following lines:

rotected $btCacheBlockRecord = false;
protected $btCacheBlockOutput = false;
protected $btCacheBlockOutputOnPost = false;
protected $btCacheBlockOutputForRegisteredUsers = false;

Join the Discussion...


Back to Blog

Get Important News & Offers

Enter your email to receive monthly news and special offers from Made Simple Media:

You can unsubscribe at any time, please read our privacy policy for more information.

Ask a Question...

Please complete the form below to send us a message:

Call now on 0800 111 4504

Stay Informed...

Enter your email address to receive occassional emails with special offers, relevant news and useful tips:

Please note, we never share your data with any third party and you can unsubscribe from emails at any time and request that your data is deleted.