Skip to content

Commit

Permalink
!!![TASK] Change default to not track last searches
Browse files Browse the repository at this point in the history
Relates: #4003
  • Loading branch information
Christoph Lehmann authored and dkd-kaehm committed Jun 6, 2024
1 parent c9958ea commit d556326
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Classes/System/Configuration/TypoScriptConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -977,7 +977,7 @@ public function getSearchLastSearches(bool $defaultIfEmpty = false): bool
*
* plugin.tx_solr.search.lastSearches.mode
*/
public function getSearchLastSearchesMode(string $defaultIfEmpty = 'user'): string
public function getSearchLastSearchesMode(string $defaultIfEmpty = 'disabled'): string
{
$result = $this->getValueByPathOrDefaultValue('plugin.tx_solr.search.lastSearches.mode', $defaultIfEmpty);
return (string)$result;
Expand Down
2 changes: 1 addition & 1 deletion Configuration/TypoScript/Solr/setup.typoscript
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ plugin.tx_solr {
lastSearches {
limit = 10
// tracking mode "user", "global" or "disabled"
mode = user
mode = disabled
}

frequentSearches = 0
Expand Down
2 changes: 1 addition & 1 deletion Documentation/Configuration/Reference/TxSolrSearch.rst
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ lastSearches.mode
:Type: String
:TS Path: plugin.tx_solr.search.lastSearches.mode
:Since: 1.3-dkd
:Default: user
:Default: disabled
:Options: user, global, disabled

If mode is user, keywords will get stored into the session. If mode is global keywords will get stored into the database. If mode is disabled, then keywords are not stored in the database.
Expand Down

0 comments on commit d556326

Please sign in to comment.