public function RocketChatChannelBlock::getCacheMaxAge in Rocket.Chat 8.2
@inheritDoc
Overrides ContextAwarePluginBase::getCacheMaxAge
File
- modules/
rocket_chat_group/ src/ Plugin/ Block/ RocketChatChannelBlock.php, line 339
Class
- RocketChatChannelBlock
- Provides an example block.
Namespace
Drupal\rocket_chat_group\Plugin\BlockCode
public function getCacheMaxAge() {
//This block is always dynamic, do not cache it ever.
return 0;
}