Caching Blocks - Question

Permalink
I've been working off of this post:
http://www.concrete5.org/community/forums/documentation_efforts/spe...

I have a custom block that outputs different information to each user. I'd like to cache it using these settings in the controller.php file but as soon as it caches it for one user, it displays the wrong information to everyone else.

Can I pick and choose some of these settings to partially cache the block so I can speed up the load time?

Here is the current code:
protected $btCacheBlockRecord = true;
protected $btCacheBlockOutput = true;
protected $btCacheBlockOutputOnPost = true;
protected $btCacheBlockOutputForRegisteredUsers = true;
protected $btCacheBlockOutputLifetime = 86400;

 
rrcustom replied on at Permalink Reply
bump.
12345j replied on at Permalink Reply
12345j
maybe try setting protected $btCacheBlockOutputForRegisteredUsers = false;
It shouldn't be displaying different stuff for different people though.
rrcustom replied on at Permalink Reply
so do you mean like this: ???

protected $btCacheBlockRecord = true;
protected $btCacheBlockOutput = true;
protected $btCacheBlockOutputOnPost = true;
protected $btCacheBlockOutputForRegisteredUsers = false; <-- changed this to false
protected $btCacheBlockOutputLifetime = 86400;