get('performance.global_cache_keys');
if (is_array($gck)) {
$k = array_search('langs', $gck);
if ($k !== false) {
unset($gck[$k]);
}
if (!in_array('vte_languages', $gck)) {
$gck[] = 'vte_languages';
}
$VP->set('performance.global_cache_keys', array_values($gck));
}
$table = $table_prefix.'_reload_user_cache';
$schema_table =
'
';
if(!Vtiger_Utils::CheckTable($table)) {
$schema_obj = new adoSchema($adb->database);
$schema_obj->ExecuteSchema($schema_obj->ParseSchemaString($schema_table));
}
if (Vtiger_Utils::CheckTable("{$table_prefix}_reload_session")) {
// don't copy data, to force a cache reload
//$adb->query("INSERT INTO $table SELECT userid, 'session' as storage_type, session_var FROM {$table_prefix}_reload_session");
$sqlarray = $adb->datadict->DropTableSQL("{$table_prefix}_reload_session");
$adb->datadict->ExecuteSQLArray($sqlarray);
}
$table = $table_prefix.'_reload_host_cache';
$schema_table =
'
';
if(!Vtiger_Utils::CheckTable($table)) {
$schema_obj = new adoSchema($adb->database);
$schema_obj->ExecuteSchema($schema_obj->ParseSchemaString($schema_table));
}
$table = $table_prefix.'_reload_global_cache';
$schema_table =
'
';
if(!Vtiger_Utils::CheckTable($table)) {
$schema_obj = new adoSchema($adb->database);
$schema_obj->ExecuteSchema($schema_obj->ParseSchemaString($schema_table));
}