public function PoweredByBlock::getCacheMaxAge in Ubercart 8.4
The maximum age for which this object may be cached.
Return value
int The maximum time in seconds that this object may be cached.
Overrides ContextAwarePluginBase::getCacheMaxAge
File
- uc_store/
src/ Plugin/ Block/ PoweredByBlock.php, line 73
Class
- PoweredByBlock
- Provides a block to identify Ubercart as the store software on a site.
Namespace
Drupal\uc_store\Plugin\BlockCode
public function getCacheMaxAge() {
// Contents of block don't depend on the page or user or any other
// cache context we have available.
return 0;
}