File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -148,7 +148,16 @@ protected function getFrequentSearchTerms() {
148
148
$ terms = array ();
149
149
150
150
// Use configuration as cache identifier
151
- $ identifier = 'frequentSearchesTags_ ' . md5 (serialize ($ this ->configuration ['search. ' ]['frequentSearches. ' ]));
151
+ $ identifier = 'frequentSearchesTags ' ;
152
+
153
+ if ($ this ->configuration ['search. ' ]['frequentSearches. ' ]['select. ' ]['checkRootPageId ' ]) {
154
+ $ identifier .= '_RP ' . (int )$ GLOBALS ['TSFE ' ]->tmpl ->rootLine [0 ]['uid ' ];
155
+ }
156
+ if ($ this ->configuration ['search. ' ]['frequentSearches. ' ]['select. ' ]['checkLanguage ' ]) {
157
+ $ identifier .= '_L ' . (int )$ GLOBALS ['TSFE ' ]->sys_language_uid ;
158
+ }
159
+
160
+ $ identifier .= '_ ' . md5 (serialize ($ this ->configuration ['search. ' ]['frequentSearches. ' ]));
152
161
153
162
if ($ this ->cacheInstance ->has ($ identifier )) {
154
163
$ terms = $ this ->cacheInstance ->get ($ identifier );
You can’t perform that action at this time.
0 commit comments