Skip to content
Snippets Groups Projects

Resolve #3300227 "Use more entropy"

Open Quentin Fahrner requested to merge issue/facets-3300227:3300227-use-more-entropy into 2.0.x
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -211,7 +211,7 @@ function facets_preprocess_facets_item_list(array &$variables) {
@@ -211,7 +211,7 @@ function facets_preprocess_facets_item_list(array &$variables) {
$variables['title'] = $facet->label();
$variables['title'] = $facet->label();
}
}
if (Settings::get('facets_debug_cacheable_metadata', FALSE) && $facet->getFacetSource() instanceof SearchApiFacetSourceInterface) {
if (Settings::get('facets_debug_cacheable_metadata', FALSE) && $facet->getFacetSource() instanceof SearchApiFacetSourceInterface) {
$variables['cache_hash'] = substr(base_convert(hash('sha256', uniqid(time())), 16, 36), 0, 6);
$variables['cache_hash'] = substr(base_convert(hash('sha256', uniqid(time(), TRUE)), 16, 36), 0, 6);
$variables['cache_contexts'] = implode(', ', $facet->getCacheContexts());
$variables['cache_contexts'] = implode(', ', $facet->getCacheContexts());
$variables['cache_tags'] = implode(', ', $facet->getCacheTags());
$variables['cache_tags'] = implode(', ', $facet->getCacheTags());
$variables['cache_max_age'] = $facet->getCacheMaxAge() . ' seconds';
$variables['cache_max_age'] = $facet->getCacheMaxAge() . ' seconds';
Loading