【发布时间】:2012-03-07 14:40:09
【问题描述】:
我可以举一个非常具体的例子。索引前:
mysql> SELECT * FROM core_url_rewrite WHERE target_path = 'catalog/category/view/id/4';
+----------------+----------+-------------+------------+--------------+--------------+----------------------------+-----------+---------+-------------+
| url_rewrite_id | store_id | category_id | product_id | id_path | request_path | target_path | is_system | options | description |
+----------------+----------+-------------+------------+--------------+--------------+----------------------------+-----------+---------+-------------+
| 1508 | 1 | 4 | NULL | category/4_1 | food.html | catalog/category/view/id/4 | 1 | | |
+----------------+----------+-------------+------------+--------------+--------------+----------------------------+-----------+---------+-------------+
1 row in set (0.00 sec)
索引后:
mysql> SELECT * FROM core_url_rewrite WHERE target_path = 'catalog/category/view/id/4';
+----------------+----------+-------------+------------+--------------+--------------+----------------------------+-----------+---------+-------------+
| url_rewrite_id | store_id | category_id | product_id | id_path | request_path | target_path | is_system | options | description |
+----------------+----------+-------------+------------+--------------+--------------+----------------------------+-----------+---------+-------------+
| 1508 | 1 | 4 | NULL | category/4_1 | food.html | catalog/category/view/id/4 | 1 | | |
| 8512 | 1 | 4 | NULL | category/4 | food-1.html | catalog/category/view/id/4 | 1 | | NULL |
+----------------+----------+-------------+------------+--------------+--------------+----------------------------+-----------+---------+-------------+
2 rows in set (0.01 sec)
所以我的问题是,Magento 到底为什么要创建重复重写?这是一个错误吗?
任何见解将不胜感激。谢谢!
亚伦
【问题讨论】:
标签: magento magento-1.4