nortmas
9/27/2017 - 2:51 PM

Render cache

$build['example'] = [
  '#markup' => $this->t('Drupal is the coolest'),
  '#cache' => [
    'max-age' => \Drupal\Core\Cache\Cache::PERMANENT,
  ],
];