Browse Source

disabled the block caching

2.x
ppound 2 years ago
parent
commit
df0438b164
  1. 8
      modules/roblib_search_eds/src/Plugin/Block/RoblibSearchEdsArticles.php
  2. 8
      modules/roblib_search_eds/src/Plugin/Block/RoblibSearchEdsBooks.php
  3. 10
      modules/solr_site/src/Plugin/Block/RoblibSearchSolrsiteBestbet.php
  4. 10
      modules/solr_site/src/Plugin/Block/RoblibSearchSolrsiteGeneral.php

8
modules/roblib_search_eds/src/Plugin/Block/RoblibSearchEdsArticles.php

@ -38,4 +38,12 @@ class RoblibSearchEdsArticles extends BlockBase {
],
];
}
/**
* {@inheritdoc}
*/
public function getCacheMaxAge() {
//Reading dynamic content from external source so no caching.
return 0;
}
}

8
modules/roblib_search_eds/src/Plugin/Block/RoblibSearchEdsBooks.php

@ -38,5 +38,13 @@ class RoblibSearchEdsBooks extends BlockBase {
],
];
}
/**
* {@inheritdoc}
*/
public function getCacheMaxAge() {
//Reading dynamic content from external source so no caching.
return 0;
}
}

10
modules/solr_site/src/Plugin/Block/RoblibSearchSolrsiteBestbet.php

@ -37,7 +37,11 @@ class RoblibSearchSolrSiteBestbet extends BlockBase {
];
}
/*public function getCacheMaxAge() {
return 1;
}*/
/**
* {@inheritdoc}
*/
public function getCacheMaxAge() {
//Reading dynamic content from external source so no caching.
return 0;
}
}

10
modules/solr_site/src/Plugin/Block/RoblibSearchSolrsiteGeneral.php

@ -38,8 +38,12 @@ class RoblibSearchSolrsiteGeneral extends BlockBase {
];
}
/*public function getCacheMaxAge() {
return 1;
}*/
/**
* {@inheritdoc}
*/
public function getCacheMaxAge() {
//Reading dynamic content from external source so no caching.
return 0;
}
}

Loading…
Cancel
Save