public function CartBlock::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_cart/
src/ Plugin/ Block/ CartBlock.php, line 100
Class
- CartBlock
- Provides the shopping cart block.
Namespace
Drupal\uc_cart\Plugin\BlockCode
public function getCacheMaxAge() {
// Contents of cart don't depend on the page or user or any other
// cache context we have available.
return 0;
}