Skip to content
Extraits de code Groupes Projets
Valider 16b388f4 rédigé par Antoine Pitrou's avatar Antoine Pitrou
Parcourir les fichiers

Vider aussi les données d'indexations des sites syndiqués

parent 05c20659
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -29,6 +29,8 @@ if ($purger_index == "oui") { ...@@ -29,6 +29,8 @@ if ($purger_index == "oui") {
mysql_query("DELETE FROM spip_index_breves"); mysql_query("DELETE FROM spip_index_breves");
mysql_query("DELETE FROM spip_index_mots"); mysql_query("DELETE FROM spip_index_mots");
mysql_query("DELETE FROM spip_index_rubriques"); mysql_query("DELETE FROM spip_index_rubriques");
mysql_query("DELETE FROM spip_index_syndic");
mysql_query("DELETE FROM spip_index_dico"); mysql_query("DELETE FROM spip_index_dico");
} }
} }
......
...@@ -61,6 +61,7 @@ function indexer_objet($type, $id_objet, $forcer_reset = true, $full = true) { ...@@ -61,6 +61,7 @@ function indexer_objet($type, $id_objet, $forcer_reset = true, $full = true) {
$index = ''; $index = '';
$mots = "INSERT DELAYED IGNORE spip_index_dico (hash, dico) VALUES (0,'')"; $mots = "INSERT DELAYED IGNORE spip_index_dico (hash, dico) VALUES (0,'')";
if ($type != 'syndic'){ if ($type != 'syndic'){
$table_index = 'spip_index_'.$type.'s'; $table_index = 'spip_index_'.$type.'s';
} else { } else {
...@@ -68,6 +69,7 @@ function indexer_objet($type, $id_objet, $forcer_reset = true, $full = true) { ...@@ -68,6 +69,7 @@ function indexer_objet($type, $id_objet, $forcer_reset = true, $full = true) {
} }
$col_id = 'id_'.$type; $col_id = 'id_'.$type;
switch($type) { switch($type) {
case 'article': case 'article':
$query = "SELECT * FROM spip_articles WHERE id_article=$id_objet"; $query = "SELECT * FROM spip_articles WHERE id_article=$id_objet";
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter