Skip to content
Snippets Groups Projects
Commit bb0e3876 authored by Demian Katz's avatar Demian Katz Committed by Robert Lange
Browse files

Account for facet boolean operators when generating cache key.

- Resolves VUFIND-1433
parent 31bbe3b7
No related merge requests found
...@@ -90,7 +90,13 @@ abstract class FacetCache ...@@ -90,7 +90,13 @@ abstract class FacetCache
protected function getCacheKey() protected function getCacheKey()
{ {
$params = $this->results->getParams(); $params = $this->results->getParams();
$settings = [$params->getFacetConfig(), $params->getHiddenFilters()]; $facetConfig = $params->getFacetConfig();
$settings = [
$facetConfig,
$params->getHiddenFilters(),
// Factor operator settings into cache key:
array_map([$params, 'getFacetOperator'], array_keys($facetConfig)),
];
return $this->language . md5(print_r($settings, true)); return $this->language . md5(print_r($settings, true));
} }
......
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