Skip to content

Commit

Permalink
Merge pull request #344 from tyrant88/tyrant88-patch-95
Browse files Browse the repository at this point in the history
Release 6.9.3
  • Loading branch information
tyrant88 authored Aug 16, 2022
2 parents 03df96a + 7672fa9 commit 54caa41
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 9 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Changelog
## Version 6.9.3 (2022-08-16)
- Fix autoreindex on yform change for PHP 8.1 (#337) thx @gharlan

## Version 6.9.2 (2022-08-16)
- Fix stats PlugIn for PHP 8.1

Expand Down
12 changes: 8 additions & 4 deletions lib/search_it.php
Original file line number Diff line number Diff line change
Expand Up @@ -1141,7 +1141,7 @@ private static function getMaxFID($_table)
public function deleteIndex()
{
$delete = rex_sql::factory();
$delete->setQuery('TRUNCATE '. self::getTempTablePrefix() .'search_it_index');
$delete->setQuery('TRUNCATE ' . self::getTempTablePrefix() . 'search_it_index');

$this->deleteCache();
}
Expand Down Expand Up @@ -2000,9 +2000,13 @@ public function deleteCache($_indexIds = false)
if ($_indexIds === false) {
// delete entire search-cache
$delete = rex_sql::factory();
$delete->setQuery('TRUNCATE '. self::getTempTablePrefix() . 'search_it_cacheindex_ids');
$delete->setQuery('TRUNCATE '. self::getTempTablePrefix() . 'search_it_cache');

if ($delete->inTransaction()) {
$delete->setQuery('DELETE FROM ' . self::getTempTablePrefix() . 'search_it_cacheindex_ids');
$delete->setQuery('DELETE FROM ' . self::getTempTablePrefix() . 'search_it_cache');
} else {
$delete->setQuery('TRUNCATE ' . self::getTempTablePrefix() . 'search_it_cacheindex_ids');
$delete->setQuery('TRUNCATE ' . self::getTempTablePrefix() . 'search_it_cache');
}
} elseif (is_array($_indexIds) AND !empty($_indexIds)) {
$sql = rex_sql::factory();

Expand Down
2 changes: 1 addition & 1 deletion package.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package: search_it
version: '6.9.2'
version: '6.9.3'
author: Friends Of REDAXO
supportpage: https://github.com/FriendsOfREDAXO/search_it

Expand Down
2 changes: 1 addition & 1 deletion plugins/autocomplete/package.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package: search_it/autocomplete
version: '6.9.2'
version: '6.9.3'
author: Manétage

title: 'translate:search_it_autocomplete_plugin_title'
Expand Down
2 changes: 1 addition & 1 deletion plugins/documentation/package.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package: search_it/documentation
version: '6.9.2'
version: '6.9.3'
author: Friends Of REDAXO

title: 'translate:search_it_documentation_title'
Expand Down
2 changes: 1 addition & 1 deletion plugins/plaintext/package.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package: search_it/plaintext
version: '6.9.2'
version: '6.9.3'
author: Friends Of REDAXO

title: 'translate:search_it_plaintext_title'
Expand Down
2 changes: 1 addition & 1 deletion plugins/stats/package.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package: search_it/stats
version: '6.9.2'
version: '6.9.3'
author: Friends Of REDAXO

title: 'translate:search_it_stats_plugin_title'
Expand Down

0 comments on commit 54caa41

Please sign in to comment.