equal
deleted
inserted
replaced
156 |
156 |
157 // |
157 // |
158 // Low level maintenance |
158 // Low level maintenance |
159 // |
159 // |
160 |
160 |
161 // If the search algorithm backend has been changed, empty out the search cache (the two cache formats are incompatible with each other) |
|
162 if ( getConfig('last_search_algo') != SEARCH_MODE ) |
|
163 { |
|
164 if ( !$db->sql_query('DELETE FROM '.table_prefix.'search_cache;') ) |
|
165 $db->_die(); |
|
166 setConfig('last_search_algo', SEARCH_MODE); |
|
167 } |
|
168 |
|
169 // If the AES key size has been changed, bail out and fast |
161 // If the AES key size has been changed, bail out and fast |
170 if ( !getConfig('aes_key_size') ) |
162 if ( !getConfig('aes_key_size') ) |
171 { |
163 { |
172 setConfig('aes_key_size', AES_BITS); |
164 setConfig('aes_key_size', AES_BITS); |
173 } |
165 } |
233 table_prefix.'hits', |
225 table_prefix.'hits', |
234 table_prefix.'search_index', |
226 table_prefix.'search_index', |
235 table_prefix.'groups', |
227 table_prefix.'groups', |
236 table_prefix.'group_members', |
228 table_prefix.'group_members', |
237 table_prefix.'acl', |
229 table_prefix.'acl', |
238 table_prefix.'search_cache', |
|
239 table_prefix.'page_groups', |
230 table_prefix.'page_groups', |
240 table_prefix.'page_group_members', |
231 table_prefix.'page_group_members', |
241 table_prefix.'tags' |
232 table_prefix.'tags' |
242 ); |
233 ); |
243 |
234 |