diff --git a/module/VuFind/src/VuFind/Config/SearchSpecsReader.php b/module/VuFind/src/VuFind/Config/SearchSpecsReader.php index 752c70b36908ff7438bd80cf232b589256e92f73..c5ce02a016508bad0d6b5af9d82ee19d9b5ba338 100644 --- a/module/VuFind/src/VuFind/Config/SearchSpecsReader.php +++ b/module/VuFind/src/VuFind/Config/SearchSpecsReader.php @@ -75,8 +75,13 @@ class SearchSpecsReader // Load data if it is not already in the object's cache: if (!isset($this->searchSpecs[$filename])) { // Connect to searchspecs cache: - $cache = (null !== $this->cacheManager) - ? $this->cacheManager->getCache('searchspecs') : false; + try { + $cache = (null !== $this->cacheManager) + ? $this->cacheManager->getCache('searchspecs') : false; + } catch (\Exception $e) { + // Don't blow up if we fail to retrieve the desired cache: + $cache = false; + } // Determine full configuration file path: $fullpath = Locator::getBaseConfigPath($filename);