@ -38,5 +38,16 @@ 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;
@ -38,6 +38,17 @@ class RoblibSearchEdsBooks extends BlockBase {
@ -36,5 +36,16 @@ class RoblibSearchSolrSiteBestbet extends BlockBase {
}:q
@ -38,5 +38,16 @@ class RoblibSearchSolrsiteGeneral extends BlockBase {