Skip to content
Snippets Groups Projects
Commit e3bb305a authored by Demian Katz's avatar Demian Katz
Browse files

Fixed caching / translation bug.

parent 0b2dc205
No related merge requests found
...@@ -156,7 +156,9 @@ class SummonController extends AbstractSearch ...@@ -156,7 +156,9 @@ class SummonController extends AbstractSearch
// Check if we have facet results cached, and build them if we don't. // Check if we have facet results cached, and build them if we don't.
$cache = $this->serviceLocator->get('VuFind\CacheManager') $cache = $this->serviceLocator->get('VuFind\CacheManager')
->getCache('object'); ->getCache('object');
if (!($list = $cache->getItem('summonSearchAdvancedFacetsList'))) { $language = $this->serviceLocator->get('VuFind\Translator')->getLocale();
$cacheKey = 'summonSearchAdvancedFacetsList-' . $language;
if (!($list = $cache->getItem($cacheKey))) {
$config = $this->serviceLocator->get('VuFind\Config') $config = $this->serviceLocator->get('VuFind\Config')
->get('Summon'); ->get('Summon');
$limit = isset($config->Advanced_Facet_Settings->facet_limit) $limit = isset($config->Advanced_Facet_Settings->facet_limit)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment