@ -39,4 +39,15 @@ class RoblibSearchEdsArticles extends BlockBase {
];
}
/**
* {@inheritdoc}
*/
public function getCacheMaxAge() {
// Reading dynamic content from external source so no caching.
if (\Drupal::currentUser()->isAnonymous()) {
// Anonymous user...
return 0;
@ -39,5 +39,16 @@ class RoblibSearchEdsBooks extends BlockBase {
@ -37,4 +37,15 @@ class RoblibSearchSolrSiteBestbet extends BlockBase {
}:q
@ -39,4 +39,15 @@ class RoblibSearchSolrsiteGeneral extends BlockBase {