Skip to content
Permalink
Browse files

added short cache description to fulltext desc search; updates #986 (#…

…542)

* added short cache description to fulltext desc search; updates #986

* psr-2 cosmetics
  • Loading branch information...
following5 authored and teiling88 committed Aug 26, 2017
1 parent 7e0ebbc commit 9492b7e8d5c6a0229a6517b8c2d7fe849f67efe1
Showing with 14 additions and 3 deletions.
  1. +11 −0 bin/dbsv-update.php
  2. +3 −3 htdocs/lib2/search/ftsearch.inc.php
@@ -1164,6 +1164,17 @@ function dbv_159()
}
}
function dbv_160()
{
// initiate refresh of cache desc fulltext search index, see redmine #986
sql(
"UPDATE `search_index_times`
SET `last_refresh`='2000-01-01 00:00:00'
WHERE `object_type`='&1'",
OBJECT_CACHEDESC
);
}
// When adding new mutations, take care that they behave well if run multiple
// times. This improves robustness of database versioning.
//
@@ -325,7 +325,7 @@ function ftsearch_text2sort($str)
function ftsearch_refresh()
{
ftsearch_refresh_all_caches();
ftsearch_refresh_all_cache_desc();
ftsearch_refresh_all_cache_descs();
ftsearch_refresh_all_pictures();
ftsearch_refresh_all_cache_logs();
}
@@ -368,7 +368,7 @@ function ftsearch_refresh_cache($cache_id)
}
function ftsearch_refresh_all_cache_desc()
function ftsearch_refresh_all_cache_descs()
{
$rs = sql(
'SELECT `cache_desc`.`id`
@@ -406,7 +406,7 @@ function ftsearch_refresh_cache_desc($id)
"
SELECT
`cache_id`,
`desc`,
CONCAT(`desc`, ' ', `short_desc`) AS `desc`,
`last_modified`
FROM `cache_desc`
WHERE `id`='&1'",

0 comments on commit 9492b7e

Please sign in to comment.
You can’t perform that action at this time.