includes/common.php
changeset 218 e0ec986c0af3
parent 217 5bcdee999015
child 229 b2f985e4cef3
equal deleted inserted replaced
217:5bcdee999015 218:e0ec986c0af3
   154 
   154 
   155 //
   155 //
   156 // Low level maintenance
   156 // Low level maintenance
   157 //
   157 //
   158 
   158 
   159 // If the search algorithm backend has been changed, empty out the search cache (the two cache formats are incompatible with each other)
       
   160 if ( getConfig('last_search_algo') != SEARCH_MODE )
       
   161 {
       
   162   if ( !$db->sql_query('DELETE FROM '.table_prefix.'search_cache;') )
       
   163     $db->_die();
       
   164   setConfig('last_search_algo', SEARCH_MODE);
       
   165 }
       
   166 
       
   167 // If the AES key size has been changed, bail out and fast
   159 // If the AES key size has been changed, bail out and fast
   168 if ( !getConfig('aes_key_size') )
   160 if ( !getConfig('aes_key_size') )
   169 {
   161 {
   170   setConfig('aes_key_size', AES_BITS);
   162   setConfig('aes_key_size', AES_BITS);
   171 }
   163 }
   210     table_prefix.'hits',
   202     table_prefix.'hits',
   211     table_prefix.'search_index',
   203     table_prefix.'search_index',
   212     table_prefix.'groups',
   204     table_prefix.'groups',
   213     table_prefix.'group_members',
   205     table_prefix.'group_members',
   214     table_prefix.'acl',
   206     table_prefix.'acl',
   215     table_prefix.'search_cache',
       
   216     table_prefix.'page_groups',
   207     table_prefix.'page_groups',
   217     table_prefix.'page_group_members',
   208     table_prefix.'page_group_members',
   218     table_prefix.'tags'
   209     table_prefix.'tags'
   219   );
   210   );
   220 
   211