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