Skip to content

Commit

Permalink
Merge pull request #286 from lshchur/patch-1
Browse files Browse the repository at this point in the history
Update Data.php (it was using for hashing only attributes that have setting "Filterable", and I've added also "Filterable (no results)")
  • Loading branch information
GordonLesti authored Feb 23, 2017
2 parents 2289f85 + 3e34150 commit f0da16a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/community/Lesti/Fpc/Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ protected function _getLayeredNavigationAttributes()
$layeredNavigationAttributesCache = $cache->load($cacheId);

if (!$layeredNavigationAttributesCache) {
$attributeCollection->addFieldToFilter($filterableField, true);
$attributeCollection->addFieldToFilter($filterableField, array('in' => array(1,2)));
foreach ($attributeCollection as $attribute) {
$layeredNavigationAttributes[] = $attribute->getAttributeCode();
}
Expand Down

0 comments on commit f0da16a

Please sign in to comment.