Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- return array(
- '#theme' => 'testing_block',
- '#testBlockData' => $testBlockData,
- '#cache' => array(
- 'contexts' => array('url.path'),
- ),
- );
- return array(
- '#theme' => 'testing_block',
- '#testBlockData' => $testBlockData,
- '#cache' => array(
- 'max-age' => 0,
- ),
- );
- return array(
- '#theme' => 'testing_block',
- '#testBlockData' => $testBlockData,
- '#cache' => array(
- 'contexts' => array('url.path'),
- 'max-age' => 0,
- ),
- );
- Drupal::service('page_cache_kill_switch')->trigger();
- /**
- * {@inheritdoc}
- */
- public function getCacheMaxAge() {
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement