Skip to content

Commit 47c55ae

Browse files
committed
MAGETWO-75769: Cache Popular Search Terms and Their Search Results Pages
1 parent 91dc6fe commit 47c55ae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Magento/CatalogSearch/view/frontend/web/js/search_terms_log.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ define([
1515
*/
1616
function urlParam(name) {
1717
var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href);
18+
1819
return results[1] || 0;
1920
}
2021

@@ -28,6 +29,6 @@ define([
2829
'q': urlParam('q')
2930
},
3031
cache: false
31-
}).done();
32+
});
3233
};
3334
});

0 commit comments

Comments
 (0)