Storeview löschen in Magento Backend, was passiert da eigentlich?

Was passiert eigentlich beim Löschen von einem Storeview in Magento. Das hat mich diese Woche brennend interessiert, da ich vorhabe, unbenutzte Storeviews zu löschen. Also bin ich der Sache nachgegangen. Mysql Log lokal angeschmissen, auf der Dev Umgebung ein paar Storeviews gelöscht und hier ist das Ergebnis, das ich mit euch teile…

Hier ist ein Abschnitt aus dem SQL Log. Im Prinzip sind diese 3 Queries die wichtigsten aus dem ganzen Abschnitt:


1047 Query DELETE FROM `core_store` WHERE (store_id='3')
1047 Query DELETE FROM `core_config_data` WHERE (scope = 'stores' AND scope_id = '3')
1047 Query DROP TABLE IF EXISTS `catalog_product_flat_3`

Der Storeview wird aus der Storetabelle entfernt. Alle für diesen Storeview hinterlegten Konfigurationen werden entfernt. Und die Tabelle für flat Produktdaten wird gelöscht. Die andere Daten werden gar nicht angefasst. D.h. bei Wiederherstellung eines Storeviews braucht man nur manuell die Einträge für core_store und core_config_data zu wiederherstellen.

Der SQL Log vollständig für Interessierten:


1047 Query START TRANSACTION
1047 Query UPDATE `index_process` SET `status` = 'require_reindex' WHERE (process_id='7')
1047 Query INSERT INTO `index_event` (`type`, `entity`, `entity_pk`, `created_at`, `old_data`, `new_data`) VALUES ('delete', 'core_store', '3', '2011-11-11 13:10:19', 'a:0:{}', 'a:8:{s:35:\"cataloginventory_stock_match_result\";b:0;s:34:\"catalog_product_price_match_result\";b:0;s:24:\"catalog_url_match_result\";b:0;s:33:\"catalog_product_flat_match_result\";b:1;s:39:\"Mage_Catalog_Model_Product_Indexer_Flat\";a:2:{s:33:\"catalog_product_flat_match_result\";b:1;s:36:\"catalog_product_flat_delete_store_id\";s:1:\"3\";}s:37:\"catalog_category_product_match_result\";b:0;s:35:\"catalogsearch_fulltext_match_result\";b:1;s:41:\"Mage_CatalogSearch_Model_Indexer_Fulltext\";a:2:{s:35:\"catalogsearch_fulltext_match_result\";b:1;s:46:\"catalogsearch_fulltext_skip_call_event_handler\";b:1;}}')
1047 Query INSERT INTO `index_process_event` (`process_id`, `event_id`, `status`) VALUES ('4','1292','new') ON DUPLICATE KEY UPDATE `status`=VALUES(`status`)
1047 Query INSERT INTO `index_process_event` (`process_id`, `event_id`, `status`) VALUES ('7','1292','new') ON DUPLICATE KEY UPDATE `status`=VALUES(`status`)
1047 Query DELETE FROM `core_store` WHERE (store_id='3')
1047 Query DELETE FROM `core_config_data` WHERE (scope = 'stores' AND scope_id = '3')
1047 Query COMMIT
1047 Query UPDATE `index_process` SET `status` = 'require_reindex' WHERE (process_id='7')
1047 Query SHOW TABLE STATUS LIKE 'catalog_product_flat_3'
1047 Query DROP TABLE IF EXISTS `catalog_product_flat_3`
1047 Query START TRANSACTION
1047 Query UPDATE `index_event` SET `event_id` = '1292', `type` = 'delete', `entity` = 'core_store', `entity_pk` = '3', `created_at` = '2011-11-11 13:10:19', `old_data` = 'a:0:{}', `new_data` = 'a:8:{s:35:\"cataloginventory_stock_match_result\";b:0;s:34:\"catalog_product_price_match_result\";b:0;s:24:\"catalog_url_match_result\";b:0;s:33:\"catalog_product_flat_match_result\";b:1;s:39:\"Mage_Catalog_Model_Product_Indexer_Flat\";N;s:37:\"catalog_category_product_match_result\";b:0;s:35:\"catalogsearch_fulltext_match_result\";b:1;s:41:\"Mage_CatalogSearch_Model_Indexer_Fulltext\";N;}' WHERE (event_id='1292')
1047 Query INSERT INTO `index_process_event` (`process_id`, `event_id`, `status`) VALUES ('4','1292','done') ON DUPLICATE KEY UPDATE `status`=VALUES(`status`)
1047 Query INSERT INTO `index_process_event` (`process_id`, `event_id`, `status`) VALUES ('7','1292','done') ON DUPLICATE KEY UPDATE `status`=VALUES(`status`)
1047 Query COMMIT

Hinterlasse eine Antwort

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind markiert *

*

Du kannst folgende HTML-Tags benutzen: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>